Hi all, I've got 3 little questions for sqlite experts! 1. How can I change the
SQL concatenation operator '||' to '..' in order to have a better integration
with the Lua programming language? 2. Is it possible to change only the
function "static int getToken(const unsigned char *z, int *tokenType)" in
"tokenize.c"? or, even better, in the amalgamation file? I presume it's not
enough (parse.y and stuff?) but I'm searching for a very simple solution...
(contents of function getToken in tokenize.c, untested patch with "removed" and
"added" tags)[...] case '|': { if( z[1]!='|' ){ *tokenType =
TK_BITOR; return 1; }// I may not remove those lines in order to
keep the default behaviour...//removed else{//removed *tokenType =
TK_CONCAT;//removed return 2;//removed } }[...] case '.':
{if( z[1]=='.' ){ //added*tokenType = TK_CONCAT;
//addedreturn 2; //added} else
//added#ifndef SQLITE_OMIT_FLOATING_POINT if( !isdigit(z[1]) )#endif
{ *tokenType = TK_DOT; return 1; } /* If the next
character is a digit, this is a floating point ** number that begins with
".". Fall thru into the next case */ }3. May this modification introduce
parse errors I can't even imagine right now? Thanks a lot if you can help
me!Aladdin
_________________________________________________________________
Vous êtes plutôt Desperate ou LOST ? Personnalisez votre PC avec votre série TV
préférée !
http://specials.divertissements.fr.msn.com/SeriesTV.aspx