MDB2 postgres error in prepare

From: Date: Thu, 14 Jul 2011 11:15:24 +0000
Subject: MDB2 postgres error in prepare
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31168@lists.php.net to get a copy of this message
Hi, I am running:
MDB2                2.5.0b3 beta
MDB2_Driver_pgsql 1.5.0b3 beta When running a prepare I got the following error: Native message: FEHLER: Syntaxfehler bei »user« Native message: ERROR: Syntaxerror on »user« getMessage() => MDB2 Error: unknown errorprepare: [Error message: Unable to create prepared statement handle] getDebugInfo() => [Last executed query: SELECT a.attname AS name,
                         t.typname AS type,
                         CASE a.attlen
                           WHEN -1 THEN
	                         CASE t.typname
	                           WHEN 'numeric' THEN (a.atttypmod / 65536)
	                           WHEN 'decimal' THEN (a.atttypmod / 65536)
	                           WHEN 'money'   THEN (a.atttypmod / 65536)
	                           ELSE CASE a.atttypmod
                                 WHEN -1 THEN NULL
	                             ELSE a.atttypmod - 4
	                           END
                             END
	                       ELSE a.attlen
                         END AS length,
	                     CASE t.typname
	                       WHEN 'numeric' THEN (a.atttypmod % 65536) - 4
	                       WHEN 'decimal' THEN (a.atttypmod % 65536) - 4
	                       WHEN 'money'   THEN (a.atttypmod % 65536) - 4
	                       ELSE 0
                         END AS scale,
                         a.attnotnull,
                         a.atttypmod,
                         a.atthasdef,
                         (SELECT substring(pg_get_expr(d.adbin, d.adrelid) for 128)
                            FROM pg_attrdef d
                           WHERE d.adrelid = a.attrelid
                             AND d.adnum = a.attnum
                             AND a.atthasdef
                         ) as default
                    FROM pg_attribute a,
                         pg_class c,
                         pg_type t
                   WHERE c.relname = 'user'
                     AND a.atttypid = t.oid
                     AND c.oid = a.attrelid
                     AND NOT a.attisdropped
                     AND a.attnum>  0
                     AND a.attname = 'userpassword'
                ORDER BY a.attnum]
[Native message: FEHLER: Syntaxfehler bei »user« LINE 1: INSERT INTO user ("uidnumber","uid","cn","gidnumber","teleph...
                    ^]
The error is directly after the prepare statement. Can you help me on this issue? Thank you! Cheers mario

« previous php.pear.general (#31168) next »