[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Linking monotone with Debian's official sqlite shar
From: |
Richard Levitte - VMS Whacker |
Subject: |
Re: [Monotone-devel] Linking monotone with Debian's official sqlite shared library |
Date: |
Tue, 26 Jul 2005 13:25:24 +0200 (CEST) |
Has this patch been proposed to the SQLite developer(s) by now? I see
no reason to wait if it hasn't.
In message <address@hidden> on Mon, 25 Jul 2005 17:25:00 +1200, Matthew Gregan
<address@hidden> said:
kinetik> > diff -u sqlite-3.2.2/src/tokenize.c
monotone/monotone-0.21/sqlite/tokenize.c
kinetik> > --- sqlite-3.2.2/src/tokenize.c 2005-06-06 14:45:43.000000000 +0000
kinetik> > +++ monotone/monotone-0.21/sqlite/tokenize.c 2005-07-17
23:02:14.000000000 +0000
kinetik> > @@ -500,8 +500,14 @@
kinetik> > ** is look for a semicolon that is not part of an string or comment.
kinetik> > */
kinetik> > int sqlite3_complete(const char *zSql){
kinetik> > + const char *tmp;
kinetik> > + return sqlite3_complete_last(zSql, &tmp);
kinetik> > +}
kinetik> > +
kinetik> > +int sqlite3_complete_last(const char *zSql, const char **last){
kinetik> > u8 state = 0; /* Current state, using numbers defined in header
comment */
kinetik> > u8 token; /* Value of the next token */
kinetik> > + const char* lastseen = 0;
kinetik>
kinetik> > #ifndef SQLITE_OMIT_TRIGGER
kinetik> > /* A complex statement machine used to detect the end of a CREATE
TRIGGER
kinetik> > @@ -551,7 +557,7 @@
kinetik> > }
kinetik> > zSql += 2;
kinetik> > while( zSql[0] && (zSql[0]!='*' || zSql[1]!='/') ){ zSql++;
}
kinetik> > - if( zSql[0]==0 ) return 0;
kinetik> > + if( zSql[0]==0 ) { *last = lastseen; return 0; }
kinetik> > zSql++;
kinetik> > token = tkWS;
kinetik> > break;
kinetik> > @@ -562,14 +568,14 @@
kinetik> [...snip...]
kinetik>
kinetik> This is to allow us to efficiently load large database dumps.
kinetik> It needs to be proposed upstream in the near future.
-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
--
Richard Levitte address@hidden
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis