summaryrefslogtreecommitdiffstats
path: root/src/build.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:07:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:07:43 +0000
commit0076f49aa5ad1cb28dbce0aaf5cdb75a3dd87554 (patch)
tree578e4cc29563a2d3d6aeefe4f19ecb2eb4527206 /src/build.c
parentReleasing progress-linux version 3.46.0-1~progress7.99u1. (diff)
downloadsqlite3-0076f49aa5ad1cb28dbce0aaf5cdb75a3dd87554.tar.xz
sqlite3-0076f49aa5ad1cb28dbce0aaf5cdb75a3dd87554.zip
Merging upstream version 3.46.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/build.c b/src/build.c
index 10aa342..9747810 100644
--- a/src/build.c
+++ b/src/build.c
@@ -3064,8 +3064,9 @@ create_view_fail:
#if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_VIRTUALTABLE)
/*
** The Table structure pTable is really a VIEW. Fill in the names of
-** the columns of the view in the pTable structure. Return the number
-** of errors. If an error is seen leave an error message in pParse->zErrMsg.
+** the columns of the view in the pTable structure. Return non-zero if
+** there are errors. If an error is seen an error message is left
+** in pParse->zErrMsg.
*/
static SQLITE_NOINLINE int viewGetColumnNames(Parse *pParse, Table *pTable){
Table *pSelTab; /* A fake table from which we get the result set */
@@ -3188,7 +3189,7 @@ static SQLITE_NOINLINE int viewGetColumnNames(Parse *pParse, Table *pTable){
sqlite3DeleteColumnNames(db, pTable);
}
#endif /* SQLITE_OMIT_VIEW */
- return nErr;
+ return nErr + pParse->nErr;
}
int sqlite3ViewGetColumnNames(Parse *pParse, Table *pTable){
assert( pTable!=0 );