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

Fix a bug in the soundex() code. Ticket #367. Add tests for ticket #261

even thought the problem could not be reproduced. (CVS 1035)

FossilOrigin-Name: e2ca936feee35b3fce99c95c2cf8c0ad05cd9c3b
This commit is contained in:
drh
2003-06-28 16:20:22 +00:00
parent d60ccc6a75
commit 937dd84de8
5 changed files with 20 additions and 14 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.25 2003/05/13 01:52:32 drh Exp $
** $Id: func.c,v 1.26 2003/06/28 16:20:23 drh Exp $
*/
#include <ctype.h>
#include <math.h>
@@ -290,7 +290,7 @@ static void soundexFunc(sqlite_func *context, int argc, const char **argv){
zResult[j] = 0;
sqlite_set_result_string(context, zResult, 4);
}else{
sqlite_set_result_string(context, zResult, "?000", 4);
sqlite_set_result_string(context, "?000", 4);
}
}
#endif