1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Bug fix: updates within a transaction would fail if there was existed

a temporary table. (CVS 425)

FossilOrigin-Name: 02cc2d60b2a5ee50efdbd90df90810ba559a453f
This commit is contained in:
drh
2002-03-10 21:21:00 +00:00
parent 5191b7e699
commit 7218ac7098
5 changed files with 15 additions and 15 deletions

View File

@ -2756,9 +2756,9 @@ int *lineno;
if( rp->code ){
fprintf(out,"#line %d \"%s\"\n{",rp->line,lemp->filename);
for(cp=rp->code; *cp; cp++){
if( isalpha(*cp) && (cp==rp->code || !isalnum(cp[-1])) ){
if( isalpha(*cp) && (cp==rp->code || (!isalnum(cp[-1]) && cp[-1]!='_')) ){
char saved;
for(xp= &cp[1]; isalnum(*xp); xp++);
for(xp= &cp[1]; isalnum(*xp) || *xp=='_'; xp++);
saved = *xp;
*xp = 0;
if( rp->lhsalias && strcmp(cp,rp->lhsalias)==0 ){