summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-26 00:10:48 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-26 00:10:48 +0200
commitc5b18651304e6b80a3ac3c440b99fcbd27153b93 (patch)
tree56ca185efbd9bb16e2e74ca38ad209baea95f514 /database
parent926a89915cc942fb6ade8b06c7ceac1a2ed202d6 (diff)
downloadeurephia-c5b18651304e6b80a3ac3c440b99fcbd27153b93.tar.gz
eurephia-c5b18651304e6b80a3ac3c440b99fcbd27153b93.tar.xz
eurephia-c5b18651304e6b80a3ac3c440b99fcbd27153b93.zip
Only add table alias in SQL 'WHERE' sections
Diffstat (limited to 'database')
-rw-r--r--database/sqlite/sqlite.c2
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);
}