diff options
author | drh <drh@noemail.net> | 2005-12-29 01:11:36 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2005-12-29 01:11:36 +0000 |
commit | a073384f0804a62ae885f92db7cacf803f6a62ef (patch) | |
tree | 7454a7d4cb631349b224bc44397db7ef6d2e4a7b /src/util.c | |
parent | ab8aa6832552f577aabc03d0069df5992c72a88c (diff) | |
download | sqlite-a073384f0804a62ae885f92db7cacf803f6a62ef.tar.gz sqlite-a073384f0804a62ae885f92db7cacf803f6a62ef.zip |
Add support for DROP TABLE IF EXISTS. (CVS 2843)
FossilOrigin-Name: a4c547de83d8b27f06a58f9e530a7c983ec1dc3a
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c index 776f5db78..898d3dedb 100644 --- a/src/util.c +++ b/src/util.c @@ -14,7 +14,7 @@ ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** -** $Id: util.c,v 1.158 2005/12/20 14:38:00 danielk1977 Exp $ +** $Id: util.c,v 1.159 2005/12/29 01:11:37 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -762,6 +762,15 @@ void sqlite3ErrorMsg(Parse *pParse, const char *zFormat, ...){ } /* +** Clear the error message in pParse, if any +*/ +void sqlite3ErrorClear(Parse *pParse){ + sqliteFree(pParse->zErrMsg); + pParse->zErrMsg = 0; + pParse->nErr = 0; +} + +/* ** Convert an SQL-style quoted string into a normal string by removing ** the quote characters. The conversion is done in-place. If the ** input does not begin with a quote character, then this routine @@ -1331,5 +1340,3 @@ void sqlite3MallocAllow(){ sqlite3Tsd()->mallocAllowed = 1; } #endif - - |