From: drh Date: Mon, 25 Feb 2013 14:39:47 +0000 (+0000) Subject: Add new SQL functions unicode() and char(). X-Git-Tag: version-3.7.16~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbc1ddf07915084bcf127c9c08bef8709d774254;p=thirdparty%2Fsqlite.git Add new SQL functions unicode() and char(). FossilOrigin-Name: be2493905281e12c7f4c146ab17c8872e52da350 --- fbc1ddf07915084bcf127c9c08bef8709d774254 diff --cc manifest index 3a38438d67,6d27274c2b..b7ed61fdcb --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Strengthen\sthe\sfinal\stest\scase\sin\sindex5.test.\s\sAlso\sprovide\sadditional\ndiagnostic\sinformation\sout\sthe\soutput. - D 2013-02-25T13:55:59.837 -C Two\snew\sSQL\sfunctions:\sunicode()\sand\schar(). -D 2013-02-22T19:34:25.685 ++C Add\snew\sSQL\sfunctions\sunicode()\sand\schar(). ++D 2013-02-25T14:39:47.361 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in a48faa9e7dd7d556d84f5456eabe5825dd8a6282 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@@ -508,7 -508,7 +508,7 @@@ F test/fts4merge2.test 5faa558d1b672f82 F test/fts4merge3.test aab02a09f50fe6baaddc2e159c3eabc116d45fc7 F test/fts4unicode.test 25ccad45896f8e50f6a694cff738a35f798cdb40 F test/full.test 6b3c8fb43c6beab6b95438c1675374b95fab245d - F test/func.test 0d89043dab9a8853358d14c68e028ee0093bf066 -F test/func.test 0ea54895539c0586e86e2dcea59b05cc9e7dd6b2 ++F test/func.test dd81580d3e8f2afafdcc8dd67233f9b4fc69a79e F test/func2.test 772d66227e4e6684b86053302e2d74a2500e1e0f F test/func3.test 001021e5b88bd02a3b365a5c5fd8f6f49d39744a F test/fuzz-oss1.test 4912e528ec9cf2f42134456933659d371c9e0d74 @@@ -1035,7 -1034,10 +1035,7 @@@ F tool/vdbe-compress.tcl f12c884766bd14 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381 F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac - P d87e5acf2802d2887e20f79a8bd4990b2cd47b91 - R eab578b1b57353b6c3cb7f5f6faef55f -P 9bd9bd9cab8c804c1a51d472199459176044a633 -R 57460c96631f0b503379401f124964ab -T *branch * unicode-function -T *sym-unicode-function * -T -sym-trunk * ++P 47b6418242bb2cd718d1a73b0cb73a43ee74e503 209b21085b9767f10f6ffb7c7cac756fcb74ded5 ++R acbb3126cf444e9dd94bf56c3bd8260d U drh - Z 0e128646425d74587780af38946ae84f -Z ff410097880c23c389e99514cc7f5a15 ++Z f91250c13344084844a40baa07a182ba diff --cc manifest.uuid index 232a450f12,a2ef64dc19..d8624e0281 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 47b6418242bb2cd718d1a73b0cb73a43ee74e503 -209b21085b9767f10f6ffb7c7cac756fcb74ded5 ++be2493905281e12c7f4c146ab17c8872e52da350 diff --cc test/func.test index e44c44b280,3107e6df3f..e45f961a73 --- a/test/func.test +++ b/test/func.test @@@ -1289,6 -1289,10 +1289,21 @@@ do_test func-29.6 if {$x<5} {set x 1} set x } {1} - + + do_execsql_test func-30.1 {SELECT unicode('$');} 36 + do_execsql_test func-30.2 {SELECT unicode('¢');} 162 + do_execsql_test func-30.3 {SELECT unicode('€');} 8364 + do_execsql_test func-30.4 {SELECT char(36,162,8364);} {$¢€} + ++for {set i 1} {$i<0xd800} {incr i 13} { ++ do_execsql_test func-30.5.$i {SELECT unicode(char($i))} $i ++} ++for {set i 57344} {$i<=0xfffd} {incr i 17} { ++ if {$i==0xfeff} continue ++ do_execsql_test func-30.5.$i {SELECT unicode(char($i))} $i ++} ++for {set i 65536} {$i<=0x10ffff} {incr i 139} { ++ do_execsql_test func-30.5.$i {SELECT unicode(char($i))} $i ++} + finish_test