Commit a5ad77780dc4a02f40ef5f14672477e28807933c

Authored by totoro
1 parent 0f7b5806

fix the empty WHERE clause by (1 = 1) which always true

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
controller/hk_sql_utils.anubis
... ... @@ -17,13 +17,13 @@ public define String
17 17 )=
18 18 if referer is
19 19 {
20   - no_referer then "",
  20 + no_referer then " (1 = 1) ",
21 21 hk_referer(referer_table, referer_row_id, fk_table, fk_column) then
22 22 if referer_table = table_name then
23 23 "id = " +referer_row_id
24 24 else if fk_column:table_columns then
25 25 fk_column + " = " + referer_row_id
26 26 else
27   - "",
  27 + " (1 = 1) ",
28 28 }
29 29 .
... ...