Hi.
I have the same problem, but I'm using PostgreSQL. The command SHOW CREATE TABLE don't run in PostgreSQL.
I have been looking for a solutions and I don't find any. The only fix is change SHOW CREATE TABLE by pg_dump --schema-only -t tablename by this post: http://blog.endpoint.com/2009/12/mysql-and-postgres-command-equivalents.html but this don't work because this comand is a cli command.
My error is:
[quote:3fdc5yg3]Type: E_USER_ERROR (256)
Message: PATCH APPLY ERROR: Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near "CREATE" LINE 1: SHOW CREATE TABLE history ^] in EXECUTE("SHOW CREATE TABLE history") Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near "CREATE" LINE 1: SHOW CREATE TABLE session_client ^] in EXECUTE("SHOW CREATE TABLE session_client") Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null
File: /var/www/epesi_bueno/include/patches.php
Line=35
error backtrace:
[PHP core called function]
function called: handle_epesi_error(256, "PATCH APPLY ERROR: Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near \"CREATE\" LINE 1: SHOW CREATE TABLE history ^] in EXECUTE(\"SHOW CREATE TABLE history\") Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near \"CREATE\" LINE 1: SHOW CREATE TABLE session_client ^] in EXECUTE(\"SHOW CREATE TABLE session_client\") Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null ", "/var/www/epesi_bueno/include/patches.php", 35, Array (true, "data/patches_log.txt", ???, Array (#3), Object (Patch), "PATCH APPLY ERROR: Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near \"CREATE\" LINE 1: SHOW CREATE TABLE history ^] in EXECUTE(\"SHOW CREATE TABLE history\") Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near \"CREATE\" LINE 1: SHOW CREATE TABLE session_client ^] in EXECUTE(\"SHOW CREATE TABLE session_client\") Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null "))
File: /var/www/epesi_bueno/include/patches.php
line 35
function called: trigger_error("PATCH APPLY ERROR: Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near \"CREATE\" LINE 1: SHOW CREATE TABLE history ^] in EXECUTE(\"SHOW CREATE TABLE history\") Error occured. File: /var/www/epesi_bueno/libs/adodb/adodb-errorhandler.inc.php Line: 77 Message: postgres7 error: [-1: ERROR: syntax error at or near \"CREATE\" LINE 1: SHOW CREATE TABLE session_client ^] in EXECUTE(\"SHOW CREATE TABLE session_client\") Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null Error occured. File: /var/www/epesi_bueno/libs/adodb/datadict/datadict-postgres.inc.php Line: 221 Message: Undefined variable: set_null ", 256)
File: /var/www/epesi_bueno/update.php
line 2727
function called: apply_new(true)
File: /var/www/epesi_bueno/index.php
line 38
function called: require_once("/var/www/epesi_bueno/update.php")
[/quote:3fdc5yg3]
Could you help me??
Thanks,
JA
PS: Sorry for my english 😛