]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Use only unsigned characters in upper() and lower(). Ticket #708. (CVS 1807)
authordrh <drh@noemail.net>
Sun, 18 Jul 2004 23:03:10 +0000 (23:03 +0000)
committerdrh <drh@noemail.net>
Sun, 18 Jul 2004 23:03:10 +0000 (23:03 +0000)
FossilOrigin-Name: f9b2aa8f8a6c0a7f74af2844a80fe14b85d05a45

manifest
manifest.uuid
src/func.c

index a0592584960f477a6df8ceeb4d1ef0be4480fca2..0334762eebf75a50f55dbaae9d778d14a80040c4 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C The\s%W\sdate\sspecifier\sin\sstrftime\sshould\sbe\smeasured\sfrom\sthe\sfirst\sMonday\nof\sthe\syear.\s\sTicket\s#758.\s(CVS\s1806)
-D 2004-07-18T22:25:15
+C Use\sonly\sunsigned\scharacters\sin\supper()\sand\slower().\s\sTicket\s#708.\s(CVS\s1807)
+D 2004-07-18T23:03:11
 F Makefile.in ab7b0d5118e2da97bac66be8684a1034e3500f5a
 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -32,7 +32,7 @@ F src/date.c 6ccb9336f1faef639d52b0aa4d31244d665607fa
 F src/delete.c 82001c74882319f94dab5f6b92a27311b31092ae
 F src/encode.c fc8c51f0b61bc803ccdec092e130bebe762b0a2f
 F src/expr.c 8c3f5603c3e98b1c146d18076ba3e82cdbb59c11
-F src/func.c 5bd2ce383d29dd6db0e8102847ac2cf02f157fd1
+F src/func.c ab5c57f0ebb975e66cc13f09141247c2f7a2c293
 F src/hash.c 9b56ef3b291e25168f630d5643a4264ec011c70e
 F src/hash.h 3247573ab95b9dd90bcca0307a75d9a16da1ccc7
 F src/insert.c c0485ee2d1b99322894e2d1e0b576fd05ed75616
@@ -189,7 +189,7 @@ F www/sqlite.tcl 3c83b08cf9f18aa2d69453ff441a36c40e431604
 F www/tclsqlite.tcl b9271d44dcf147a93c98f8ecf28c927307abd6da
 F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1
 F www/whentouse.tcl a8335bce47cc2fddb07f19052cb0cb4d9129a8e4
-P 223521c04e8ad39e06fee455f7dbb31ace2d3800
-R 2162cd7e88b845d13ee12e77797aa720
+P 135e5447f66fcd8ec4350c81707a2e8d3c9fd31c
+R 4bbf2b16a71111c796b58a274ab175a8
 U drh
-Z 5dc138bdcbb1d569eebdca901b4f37d0
+Z dce0cbde79c5dcc8e9719582aaa1c6f7
index 2f589e2735429316d7c8246af0f8363c9c3e5c9b..5ec78a1a87f7ca215e3e0d4417472a871c75ecce 100644 (file)
@@ -1 +1 @@
-135e5447f66fcd8ec4350c81707a2e8d3c9fd31c
\ No newline at end of file
+f9b2aa8f8a6c0a7f74af2844a80fe14b85d05a45
\ No newline at end of file
index 881171b7a7c8fa56275bf2334a0b23edb2e2a204..043247baf6537f8016227f3b173049b508ad59bf 100644 (file)
@@ -16,7 +16,7 @@
 ** sqliteRegisterBuildinFunctions() found at the bottom of the file.
 ** All other code has file scope.
 **
-** $Id: func.c,v 1.43.2.2 2004/07/18 21:14:05 drh Exp $
+** $Id: func.c,v 1.43.2.3 2004/07/18 23:03:11 drh Exp $
 */
 #include <ctype.h>
 #include <math.h>
@@ -157,20 +157,20 @@ static void roundFunc(sqlite_func *context, int argc, const char **argv){
 ** Implementation of the upper() and lower() SQL functions.
 */
 static void upperFunc(sqlite_func *context, int argc, const char **argv){
-  char *z;
+  unsigned char *z;
   int i;
   if( argc<1 || argv[0]==0 ) return;
-  z = sqlite_set_result_string(context, argv[0], -1);
+  z = (unsigned char*)sqlite_set_result_string(context, argv[0], -1);
   if( z==0 ) return;
   for(i=0; z[i]; i++){
     if( islower(z[i]) ) z[i] = toupper(z[i]);
   }
 }
 static void lowerFunc(sqlite_func *context, int argc, const char **argv){
-  char *z;
+  unsigned char *z;
   int i;
   if( argc<1 || argv[0]==0 ) return;
-  z = sqlite_set_result_string(context, argv[0], -1);
+  z = (unsigned char*)sqlite_set_result_string(context, argv[0], -1);
   if( z==0 ) return;
   for(i=0; z[i]; i++){
     if( isupper(z[i]) ) z[i] = tolower(z[i]);