mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 02:41:07 +00:00
tiny tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38652 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dfdc074674
commit
f990a97227
1 changed files with 4 additions and 23 deletions
|
@ -73,7 +73,7 @@ main()
|
|||
name: @"test"
|
||||
max: 2
|
||||
min: 1] autorelease];
|
||||
#if 0
|
||||
#if 1
|
||||
{
|
||||
NSAutoreleasePool *p;
|
||||
SQLClient *c0;
|
||||
|
@ -453,32 +453,13 @@ main()
|
|||
[db begin];
|
||||
[db execute: @"create table xxx ( "
|
||||
@"id int, "
|
||||
@"k char(40), "
|
||||
@"char1 char(1), "
|
||||
@"boolval BOOL, "
|
||||
@"intval int, "
|
||||
@"when1 timestamp with time zone, "
|
||||
@"when2 timestamp, "
|
||||
@"b bytea,"
|
||||
@"extra1 int[],"
|
||||
@"extra2 varchar[],"
|
||||
@"extra3 bytea[],"
|
||||
@"extra4 boolean[],"
|
||||
@"extra5 timestamp with time zone[]"
|
||||
@")",
|
||||
@"when2 timestamp)",
|
||||
nil];
|
||||
[db execute: @"insert into xxx "
|
||||
@"(id, k, char1, boolval, intval, when1, when2, b) "
|
||||
[db execute: @"insert into xxx (id, when1, when2) "
|
||||
@"values (99,",
|
||||
[db quote: oddChars],
|
||||
@", ",
|
||||
[db quote: nonLatin],
|
||||
@",TRUE, "
|
||||
@"1, ",
|
||||
[NSDate distantPast], @", ",
|
||||
[NSDate distantFuture], @", ",
|
||||
[NSData dataWithBytes: "" length: 0],
|
||||
@")",
|
||||
[NSDate distantFuture], @")",
|
||||
nil];
|
||||
r0 = [[db query: @"select * from xxx where id=99", nil] lastObject];
|
||||
[db execute: @"drop table xxx", nil];
|
||||
|
|
Loading…
Reference in a new issue