1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-24 09:53:10 +03:00

Fix the "test_destructor" test function in utf-16 mode. Fix for test failure in utf16 version of func.test. (CVS 4344)

FossilOrigin-Name: c073b78040e5833de038dea464ac87c7358b8b51
This commit is contained in:
danielk1977
2007-08-30 16:30:27 +00:00
parent 428e282662
commit 8601124d56
3 changed files with 10 additions and 9 deletions

View File

@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: func.c,v 1.171 2007/08/29 14:06:23 danielk1977 Exp $
** $Id: func.c,v 1.172 2007/08/30 16:30:27 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1084,6 +1084,7 @@ static void test_destructor(
return;
}
zVal[len+1] = 0;
zVal[len+2] = 0;
zVal++;
memcpy(zVal, sqlite3ValueText(argv[0], ENC(db)), len);
if( ENC(db)==SQLITE_UTF8 ){