Don't copy whitespace into the sql query. IMHO it doesn't make sense. It's just extra calls and extra stuff for sqlite to parse. Plus we're putting our own whitespace where it's needed.
modified pkg/query.c
@@ -443,9 +443,10 @@ format_sql_condition(const char *str, struct sbuf *sqlcond)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
| - | |
|
|
|
|
|
@@ -467,8 +468,8 @@ format_sql_condition(const char *str, struct sbuf *sqlcond)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -516,7 +517,7 @@ format_sql_condition(const char *str, struct sbuf *sqlcond)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -543,8 +544,9 @@ format_sql_condition(const char *str, struct sbuf *sqlcond)
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
|
|
|
|
|