You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Warning: pg_query(): Query failed: ERROR: argument of WHERE must be type boolean, not type integer
LINE 1: SELECT * FROM flyspray_history WHERE -1
^ in /srv/www/htdocs/ADOdb/drivers/adodb-postgres7.inc.php on line 259
-1: ERROR: argument of WHERE must be type boolean, not type integer
LINE 1: SELECT * FROM flyspray_history WHERE -1
^
ADOConnection._Execute(SELECT * FROM flyspray_history WHERE -1, false)% line 1383, file: /srv/www/htdocs/ADOdb/adodb.inc.php
ADOConnection.Execute(SELECT * FROM flyspray_history WHERE -1)% line 2095, file: /srv/www/htdocs/ADOdb/adodb-xmlschema03.inc.php
adoSchema.extractSchema(true)% line 25, file: /srv/www/htdocs/extractsch.php
Fix is probably rewriting the query so the WHERE clause is always a boolean false if we are just interested in field definition, not data, right?
adodbtest=# create table adodbtest(id int);
CREATE TABLE
adodbtest=# insert into adodbtest values (10),(20),(30);
INSERT 0 3
adodbtest=# select * from adodbtest where -1;
ERROR: argument of WHERE must be type boolean, not type integer
LINE 1: select * from adodbtest where -1;
^
adodbtest=# select * from adodbtest where 0=1;
id
----
(0 rows)
The text was updated successfully, but these errors were encountered:
This caused an error on PostgreSQL:
Query failed: ERROR: argument of WHERE must be type boolean, not type integer
Fixes#707
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Using the extractSchema() of adodb-xmlschema03.inc.php with a postgresql database is not working:
Testscript with existing adodbtest database:
Fix is probably rewriting the query so the WHERE clause is always a boolean false if we are just interested in field definition, not data, right?
The text was updated successfully, but these errors were encountered: