Can you try change line 785 from self._execute = lambda *a, **b: self._cursor.execute(*a, **b)
to self._execute = lambda a: self._cursor.execute(a[:-1]) Any better? Massimo On Feb 24, 1:54 pm, DenesL <[email protected]> wrote: > (Using pyodbc-2.1.3.win32-py2.5) > > Version 1.56.4 (2009-02-23 09:43:44) > Database drivers available: SQLite3, MSSQL/DB2 > Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit > (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > (InteractiveConsole)>>> db=SQLDB('db2:DSN=dot8;UID=test;PWD=db2py') > >>> db.define_table('tt', > > ... SQLField('boo','boolean'), > ... SQLField('dte','date'), > ... SQLField('int','integer'), > ... SQLField('str','string')) > Traceback (most recent call last): > File "<console>", line 5, in <module> > File "c:/web2py/trunk/gluon\sql.py", line 856, in define_table > raise e > ProgrammingError: ('42000', '[42000] [IBM][iSeries Access ODBC Driver] > [DB2 UDB]S > QL0104 - Token ; was not valid. Valid tokens: <END-OF-STATEMENT>. > (-104) (SQLExe > cDirectW)') > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

