>
> > I would like to use IDs generated by generator in my application.
>
> SQLObject either allows the user to generate an ID (outside of
> SQLObject) or delegates the job of generating an ID to the connection. If
> you want to generate an ID at the backend and pass it to INSERT queries
> you
> can either run the queries to generate an ID (it's what you are doing now)
> or create your own connection class and override _queryInsertID() method.
> See how the method works for Postgres (pgconnection.py).
Thanks for quick reply Oleg,
Yes, I would like to pass an ID to the INSERT statemens (as a primary key
for master records and foreign key for detail records)
Till now I am quite happy wiht:
genValMaster = connection.queryOne("SELECT GEN_ID( GEN_PERSON, 1 ) FROM
RDB$DATABASE")
genValDetail = connection.queryOne("SELECT GEN_ID( GEN_PERSON, 1 ) FROM
RDB$DATABASE")
I just wondered if there is a method within the SQLObject to do this job.
Regards
Petr Jakes
>
> Oleg.
> --
> Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
> Programmers don't die, they just GOSUB without RETURN.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> sqlobject-discuss mailing list
> sqlobject-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>
--
Ing. Petr Jakeš
TPC spol. s r.o.
Průmyslová 1137
506 01 Jičín
Czech republic, Europe
www.tpc.cz
mobile: +420-777-172450
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss