diff options
-rw-r--r-- | database/sqlite/sqlite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/database/sqlite/sqlite.c b/database/sqlite/sqlite.c index 263ef97..afe4077 100644 --- a/database/sqlite/sqlite.c +++ b/database/sqlite/sqlite.c @@ -388,7 +388,7 @@ char *_build_sqlpart(int btyp, eDBfieldMap *map) { // Put the pieces together and append it to the final result val = _build_value_string(ptr); - if( ptr->table_alias != NULL ) { + if( (btyp == btWHERE) && (ptr->table_alias != NULL) ) { append_str(buf, ptr->table_alias, 8192); append_str(buf, ".", 8192); } |