diff options
Diffstat (limited to 'src/callback.c')
-rw-r--r-- | src/callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callback.c b/src/callback.c index 3b8acd335..45556f6b4 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.5 2005/12/06 12:52:59 danielk1977 Exp $ +** $Id: callback.c,v 1.6 2005/12/14 20:11:30 drh Exp $ */ #include "sqliteInt.h" @@ -36,7 +36,7 @@ static void callCollNeeded(sqlite3 *db, const char *zName, int nName){ if( db->xCollNeeded16 ){ char const *zExternal; sqlite3_value *pTmp = sqlite3GetTransientValue(db); - sqlite3ValueSetStr(pTmp, -1, zName, SQLITE_UTF8, SQLITE_STATIC); + sqlite3ValueSetStr(pTmp, nName, zName, SQLITE_UTF8, SQLITE_STATIC); zExternal = sqlite3ValueText(pTmp, SQLITE_UTF16NATIVE); if( !zExternal ) return; db->xCollNeeded16(db->pCollNeededArg, db, (int)db->enc, zExternal); |