Re: [sqlite] Documentation Typo : https://sqlite.org/optoverview.html section 15
Fixed now. Tnx. On 4/12/18, Keith Medcalfwrote: > > https://sqlite.org/optoverview.html > > 15, the push down optimization. The BETWEEN clause is in error? > > SELECT x, y, b > FROM t2 > JOIN (SELECT DISTINCT a, b FROM t1 WHERE b BETWEEN 10 AND 20) > WHERE b BETWEEN 10 AND 10; > > should probably be BETWEEN 10 AND 20; > > --- > The fact that there's a Highway to Hell but only a Stairway to Heaven says a > lot about anticipated traffic volume. > > > > > > ___ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > -- D. Richard Hipp d...@sqlite.org ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] Documentation typo
Drago, William wrote: > In section 2 of http://sqlite.org/foreignkeys.html the word > "separately" appears twice in the following sentence: > > Foreign key constraints are disabled by default (for backwards > compatibility), so must be enabled separately for each > database connection separately. Other sentences in the same page, where words "can" and "not" appear incorrectly twice: - The application *can can* also use a PRAGMA foreign_keys - The PRAGMA recursive_triggers setting does *not not* affect the operation of foreign key actions Regards Dominique ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] Documentation typo
2010/5/10 "Carlos Andrés Ramírez C."> > Hello guys, > I was breaking my head trying to figure out how to obtain the last > inserted row's ID --- using SQLite from Ruby. > > I found 'last_insert_rowid()' in your documentation at > http://www.sqlite.org/lang_corefunc.html and still did not do it. > > After spending a lot of time searching, I found that it was not > 'last_insert_rowid()' as documented, but instead 'last_insert_row_id()' > with an extra underscore character before the 'id'. > SQLite uses last_insert_rowid() (with no _ between row and id) is correct, as the documentation states. Perhaps Ruby has an equivalent method named last_insert_row_id(). Or perhaps the version of SQLite built into Ruby has a modified version of SQLite that adds the extra _ in the name. > > is this a Typo? --- I almost went crazy > It was like that also in the downloadable documentation, so you wanna > check that out, > > Best wishes, > > Carlos Ramirez, > www.antai-group.com > > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > -- - D. Richard Hipp d...@sqlite.org ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] Documentation typo
2010/5/10 "Carlos Andrés Ramírez C.": > > Hello guys, > I was breaking my head trying to figure out how to obtain the last > inserted row's ID --- using SQLite from Ruby. > > I found 'last_insert_rowid()' in your documentation at > http://www.sqlite.org/lang_corefunc.html and still did not do it. > > After spending a lot of time searching, I found that it was not > 'last_insert_rowid()' as documented, but instead 'last_insert_row_id()' > with an extra underscore character before the 'id'. > Nope. last_insert_rowid() is correct. Note that just doing a 'SELECT row_id FROM table' will croak with an error, while 'SELECT rowid FROM table' works fine. There is no underscore. I have $dbh->sqlite_last_insert_rowid() in Perl. Perhaps your Ruby SQLite package has changed the syntax and introduced the underscore. Get it corrected there. > is this a Typo? --- I almost went crazy > It was like that also in the downloadable documentation, so you wanna > check that out, > > Best wishes, > > Carlos Ramirez, > www.antai-group.com > > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --- Assertions are politics; backing up assertions with evidence is science === ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] Documentation typo
On 10 May 2010, at 4:11pm, Carlos Andrés Ramírez C. wrote: > I was breaking my head trying to figure out how to obtain the last > inserted row's ID --- using SQLite from Ruby. > > I found 'last_insert_rowid()' in your documentation at > http://www.sqlite.org/lang_corefunc.html and still did not do it. > > After spending a lot of time searching, I found that it was not > 'last_insert_rowid()' as documented, but instead 'last_insert_row_id()' > with an extra underscore character before the 'id'. The amalgamation source for 3.6.23 has SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*); and static void last_insert_rowid I don't know where you got your function from, but I don't think it's SQLite. It might be a Ruby library that /calls/ SQLite, in which case the error is with whoever wrote the Ruby library. Simon. ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users