D. Richard Hipp schrieb: > On Apr 10, 2008, at 11:47 AM, Dennis Cote wrote: >> Michael Schlenker wrote: > > That is correct, but it is not the whole story. Registers have to be > allocated. > The canonical way to do this is to increment the Parse.nMem field. Or > one > can call sqlite3GetTempReg() or sqlite3GetTempRange(). Registers > acquired > this way need not be released for reuse, though of course they can be. Good to know. > > On the other hand, anybody who is modifying the code generator (which > is what Michael Schlenker appears to be doing) Yep. Basically trying to patch in a curval()/nextval() function for sequence generation. Maybe i work too hard for this, if a standard user defined function via sqlite3_create_function() could do the same i would keep my fingers from the VDBE internals..., someone told me it wouldn't work in a regular sqlite3_create_function(), but maybe that was just cargo cult... just inherited this code from someone...
So if there is a better way to do it, please tell me. > needs to read through the > entire code generator source code base and understand at a deep level > what is going on. Which is actually quite a nice code to read. > And, such programmers need to be prepared to throw > away their changes and start over when code generator implementation > changes, which it does from time to time. 3.5.4->3.5.5 was a big change > for the code generator. > But you should know that we are not through > changing > it yet and more big changes could appear in future releases. The > virtual > machine in SQLite is not an API and we make positively zero effort to > maintain > backwards compatibility from one point release to the next. Fine with me. Actually doing the 'throw away and rewrite on upgrade' cycle just now... Michael -- Michael Schlenker Software Engineer CONTACT Software GmbH Tel.: +49 (421) 20153-80 Wiener Straße 1-3 Fax: +49 (421) 20153-41 28359 Bremen http://www.contact.de/ E-Mail: [EMAIL PROTECTED] Sitz der Gesellschaft: Bremen Geschäftsführer: Karl Heinz Zachries, Ralf Holtgrefe Eingetragen im Handelsregister des Amtsgerichts Bremen unter HRB 13215 _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users