I am putting this is but, as you say, probably db2/400 only. On Mar 4, 4:29 pm, DenesL <denes1...@yahoo.ca> wrote: > After a successful insert, either one of these will work: > > int(cursor.execute("select IDENTITY_VAL_LOCAL() from > SYSIBM.SYSDUMMY1").fetchone()[0]) > int(cursor.execute("select IDENTITY_VAL_LOCAL() from > SYSIBM.SYSDUMMY1").next()[0]) > > the result before int() is <class 'decimal.Decimal'> > Note that SYSIBM.SYSDUMMY1 is probably only good for db2/400. > > Thanks go to mkleehammer of pyodbc for his help on this. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---
- [web2py:17092] Re: DAL mssql DSN connection mdipierro
- [web2py:17108] Re: DAL mssql DSN connection carlo
- [web2py:17109] Re: DAL mssql DSN connection DenesL
- [web2py:17122] Re: DAL mssql DSN connection DenesL
- [web2py:17147] Re: DAL mssql DSN connection carlo
- [web2py:17330] Re: DAL mssql DSN connection DenesL
- [web2py:17333] Re: DAL mssql DSN connection mdipierro
- [web2py:17346] Re: DAL mssql DSN connection DenesL
- [web2py:17352] Re: DAL mssql DSN connection mdipierro
- [web2py:17511] Re: DAL mssql DSN connection DenesL
- [web2py:17518] Re: DAL mssql DSN connection mdipierro
- [web2py:17541] Re: DAL mssql DSN connection DenesL
- [web2py:17600] Re: DAL mssql DSN connection DenesL
- [web2py:17601] Re: DAL mssql DSN connection mdipierro
- [web2py:17610] Re: DAL mssql DSN connection DenesL
- [web2py:17611] Re: DAL mssql DSN connection mdipierro
- [web2py:17617] Re: DAL mssql DSN connection DenesL
- [web2py:17618] Re: DAL mssql DSN connection DenesL
- [web2py:17620] Re: DAL mssql DSN connection mdipierro
- [web2py:17622] Re: DAL mssql DSN connection DenesL
- [web2py:17624] Re: DAL mssql DSN connection mdipierro