summaryrefslogtreecommitdiff
path: root/adodb-xmlschema03.inc.php
diff options
context:
space:
mode:
authorpeterdd <ddpm@liscovius.de>2021-03-18 06:15:55 +0100
committerDamien Regad <dregad@mantisbt.org>2021-03-27 10:58:18 +0100
commit97442e1acd9fed48542f259fd132407394934bd4 (patch)
tree9ccbf788e17aa7f4df04ec461597087925c61a12 /adodb-xmlschema03.inc.php
parent099d06fc8f3f5fa8e82c0064c1b9148e89729b4c (diff)
downloadadodb-97442e1acd9fed48542f259fd132407394934bd4.tar.gz
adodb-97442e1acd9fed48542f259fd132407394934bd4.tar.bz2
adodb-97442e1acd9fed48542f259fd132407394934bd4.zip
xml: Fix invalid SQL in extractSchema()
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>
Diffstat (limited to 'adodb-xmlschema03.inc.php')
-rw-r--r--adodb-xmlschema03.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb-xmlschema03.inc.php b/adodb-xmlschema03.inc.php
index 8d503d3b..11317587 100644
--- a/adodb-xmlschema03.inc.php
+++ b/adodb-xmlschema03.inc.php
@@ -2114,7 +2114,7 @@ class adoSchema {
. '">' . "\n";
// grab details from database
- $rs = $this->db->execute( 'SELECT * FROM ' . $table . ' WHERE -1' );
+ $rs = $this->db->execute('SELECT * FROM ' . $table . ' WHERE 0=1');
$fields = $this->db->metaColumns( $table );
$indexes = $this->db->metaIndexes( $table );