Menu

Schema not working with IBM DB2

Konni
2004-10-11
2013-04-01
  • Konni

    Konni - 2004-10-11

    Here's the error output ..

    For odbc Connect(), koppur is not used. Place dsn in 1st parameter. ----- (db2): select versionnumber from sysibm.sysversions ----- ----- (db2): CREATE TABLE vcd_CoversAllowedOnMediatypes ( cover_type_id INTEGER(10) NOT NULL, media_type_id INTEGER(10) NOT NULL ) -----
    Warning: odbc_exec() [function.odbc-exec]: SQL error: [IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "INTEGER" was found following "YPES ( cover_type_id". Expected tokens may include: "DATALINK". SQLSTATE=42601 , SQL state 42601 in SQLExecDirect in c:\wwwroot\VCD5\classes\adodb\drivers\adodb-odbc.inc.php on line 526
    42601: [IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "INTEGER" was found following "YPES ( cover_type_id". Expected tokens may include: "DATALINK". SQLSTATE=42601
                ADODB_DB2._Execute(CREATE TABLE vcd_CoversAllowedOnMediatypes (
    cover_type_id      ..., false) % line  833, file: adodb.inc.php
             ADODB_DB2.Execute(CREATE TABLE vcd_CoversAllowedOnMediatypes (
    cover_type_id      ...) % line  263, file: adodb-datadict.inc.php
          ADODB2_db2.ExecuteSQLArray(Array[126], false) % line 1558, file: adodb-xmlschema.inc.php
       adoSchema.ExecuteSchema(null, false) % line  630, file: installer.php
    installer.installDB() % line  231, file: installer.php

    Same schema works great on mysql and mssql ..
    any ideas ?

     
    • Mark Newnham

      Mark Newnham - 2004-11-05

      This appears to be a problem with your connection. I have no problem using xmlschema with DB2.  Which version of adodb are you using, as I have submitted some patches to the db2 driver related to xmlschema which appear in adodb 4.52

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.