aboutsummaryrefslogtreecommitdiff
path: root/src/callback.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-08-14 01:20:37 +0000
committerdrh <drh@noemail.net>2005-08-14 01:20:37 +0000
commit55ef4d9758ed27c332f07ca56fc9ba61cadfe2e7 (patch)
tree8f59d79014cb49e92d37a1ebe548537b6bdbadf1 /src/callback.c
parent3d94662a062a5da6340568b5ad656c3057f053c5 (diff)
downloadsqlite-55ef4d9758ed27c332f07ca56fc9ba61cadfe2e7.tar.gz
sqlite-55ef4d9758ed27c332f07ca56fc9ba61cadfe2e7.zip
The case_sensitive_like pragma added.
Test cases added for the LIKE optimization. (CVS 2592) FossilOrigin-Name: 72ee21c05e618b6f46f5460f8c85779c72fe32d7
Diffstat (limited to 'src/callback.c')
-rw-r--r--src/callback.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/callback.c b/src/callback.c
index 1abf82668..8b585a11f 100644
--- a/src/callback.c
+++ b/src/callback.c
@@ -13,7 +13,7 @@
** This file contains functions used to access the internal hash tables
** of user defined functions and collation sequences.
**
-** $Id: callback.c,v 1.2 2005/05/25 10:45:10 danielk1977 Exp $
+** $Id: callback.c,v 1.3 2005/08/14 01:20:38 drh Exp $
*/
#include "sqliteInt.h"
@@ -147,7 +147,7 @@ int sqlite3CheckCollSeq(Parse *pParse, CollSeq *pColl){
** the collation sequence name. A pointer to this string is stored in
** each collation sequence structure.
*/
-static CollSeq * findCollSeqEntry(
+static CollSeq *findCollSeqEntry(
sqlite3 *db,
const char *zName,
int nName,
@@ -286,10 +286,9 @@ FuncDef *sqlite3FindFunction(
** new entry to the hash table and return it.
*/
if( createFlag && bestmatch<6 &&
- (pBest = sqliteMalloc(sizeof(*pBest)+nName+1)) ){
+ (pBest = sqliteMalloc(sizeof(*pBest)+nName)) ){
pBest->nArg = nArg;
pBest->pNext = pFirst;
- pBest->zName = (char*)&pBest[1];
pBest->iPrefEnc = enc;
memcpy(pBest->zName, zName, nName);
pBest->zName[nName] = 0;