aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-08-14 19:27:51 +0000
committerdrh <drh@noemail.net>2018-08-14 19:27:51 +0000
commit1595abcda65adeaf8bddaba36d133b414ff86cdf (patch)
tree0c12a356aed186e9633d5d38bc846222ec27b4a3 /src/sqliteInt.h
parent5550b5eee7d51370ff326b1e741f6c0a3c737666 (diff)
downloadsqlite-1595abcda65adeaf8bddaba36d133b414ff86cdf.tar.gz
sqlite-1595abcda65adeaf8bddaba36d133b414ff86cdf.zip
Improved error messages when an ALTER TABLE RENAME COLUMN fails due to a
duplicate column name. FossilOrigin-Name: 37d11b8e8224a8b241ff57b9c4b9499db39dde4ddcb56ff8b03a3d08091a4c11
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 7b01bb27f..e7d86ba3b 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3329,9 +3329,15 @@ typedef struct {
char **pzErrMsg; /* Error message stored here */
int iDb; /* 0 for main database. 1 for TEMP, 2.. for ATTACHed */
int rc; /* Result code stored here */
+ u32 mInitFlags; /* Flags controlling error messages */
} InitData;
/*
+** Allowed values for mInitFlags
+*/
+#define INITFLAG_AlterTable 0x0001 /* This is a reparse after ALTER TABLE */
+
+/*
** Structure containing global configuration data for the SQLite library.
**
** This structure also contains some state information.
@@ -3801,7 +3807,7 @@ void sqlite3ExprListDelete(sqlite3*, ExprList*);
u32 sqlite3ExprListFlags(const ExprList*);
int sqlite3Init(sqlite3*, char**);
int sqlite3InitCallback(void*, int, char**, char**);
-int sqlite3InitOne(sqlite3*, int, char**);
+int sqlite3InitOne(sqlite3*, int, char**, u32);
void sqlite3Pragma(Parse*,Token*,Token*,Token*,int);
#ifndef SQLITE_OMIT_VIRTUALTABLE
Module *sqlite3PragmaVtabRegister(sqlite3*,const char *zName);