1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Remove the MySQL upsert syntax. As an optional alias to the insert table

name in order to finish out PostgreSQL upsert syntax emulation.

FossilOrigin-Name: 810d9f63be46c1452718b05e51c519fb64e9fabf2f1813b5e07b1041dbb71880
This commit is contained in:
drh
2018-04-16 13:26:53 +00:00
parent eac9fabbc9
commit 0a6259f539
5 changed files with 17 additions and 15 deletions

View File

@@ -349,7 +349,7 @@ static int lookupName(
pExpr->iTable = pNC->uNC.pUpsert->regData + iCol;
eNewExprOp = TK_REGISTER;
}else
#endif
#endif /* SQLITE_OMIT_UPSERT */
{
#ifndef SQLITE_OMIT_TRIGGER
if( iCol<0 ){
@@ -366,7 +366,7 @@ static int lookupName(
pExpr->pTab = pTab;
pExpr->iColumn = (i16)iCol;
eNewExprOp = TK_TRIGGER;
#endif /* SQLITE_OMIT_TRIGGER
#endif /* SQLITE_OMIT_TRIGGER */
}
}
}