aboutsummaryrefslogtreecommitdiff
path: root/src/alter.c
diff options
context:
space:
mode:
authordrh <>2024-08-09 18:42:01 +0000
committerdrh <>2024-08-09 18:42:01 +0000
commitc60c928717aa56cce9b70c95c7c505756aded9c5 (patch)
tree23bf4bbd226445339d0fdad6271b158e0ed149f4 /src/alter.c
parent610a5bafe24ed186a3741fec09d136d5fc3d5eac (diff)
downloadsqlite-c60c928717aa56cce9b70c95c7c505756aded9c5.tar.gz
sqlite-c60c928717aa56cce9b70c95c7c505756aded9c5.zip
Fix another instance where ALTER TABLE was returning SQLITE_INTERNAL instead
of SQLITE_ERROR one malformed input. FossilOrigin-Name: b416756320dfb46ad72b843a7fbf18807d3fd1966251c320de626280b5238a5c
Diffstat (limited to 'src/alter.c')
-rw-r--r--src/alter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alter.c b/src/alter.c
index c1e0a295a..a8556d115 100644
--- a/src/alter.c
+++ b/src/alter.c
@@ -1320,7 +1320,7 @@ static int renameResolveTrigger(Parse *pParse){
/* ALWAYS() because if the table of the trigger does not exist, the
** error would have been hit before this point */
if( ALWAYS(pParse->pTriggerTab) ){
- rc = sqlite3ViewGetColumnNames(pParse, pParse->pTriggerTab);
+ rc = sqlite3ViewGetColumnNames(pParse, pParse->pTriggerTab)!=0;
}
/* Resolve symbols in WHEN clause */