Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix rquery with an evaluation string
Baptiste Daroussin committed 12 years ago
commit c266a11aa25c74087abca97510c8a9313c88d155
parent f652a6c
1 file changed +1 -1
modified pkg/query.c
@@ -501,7 +501,7 @@ format_sql_condition(const char *str, struct sbuf *sqlcond, bool for_remote)
				case '#': /* FALLTHROUGH */
				case '?':
					str++;
-
					const char *dbstr = for_remote ? "%1$s." : "";
+
					const char *dbstr = for_remote ? "'%1$s'." : "";
					const char *sqlop = (str[0] == '#' ? "COUNT(*)" : "COUNT(*) > 0");
					switch (str[0]) {
						case 'd':