Ver Fonte

Quick unicode test to quell my paranoia.

August Mueller há 13 anos atrás
pai
commit
9c749a981a
1 ficheiros alterados com 11 adições e 0 exclusões
  1. 11 0
      src/fmdb.m

+ 11 - 0
src/fmdb.m

@@ -452,6 +452,17 @@ int main (int argc, const char * argv[]) {
     
     
     
+    {
+        
+        [db executeUpdate:@"create table utest (a text)"];
+        [db executeUpdate:@"insert into utest values (?)", @"/übertest"];
+        
+        rs = [db executeQuery:@"select * from utest where a = ?", @"/übertest"];
+        FMDBQuickCheck([rs next]);
+        [rs close];
+    }   
+    
+    
     {
         [db executeUpdate:@"create table testOneHundredTwelvePointTwo (a text, b integer)"];
         [db executeUpdate:@"insert into testOneHundredTwelvePointTwo values (?, ?)" withArgumentsInArray:[NSArray arrayWithObjects:@"one", [NSNumber numberWithInteger:2], nil]];