1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2020, 2021, 2023 Jonathan Schleifer <js@nil.im>
*
* https://fl.nil.im/objsqlite3
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
|
|
|
1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2020, 2021, 2023, 2024 Jonathan Schleifer <js@nil.im>
*
* https://fl.nil.im/objsqlite3
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
|
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
c = [OFData dataWithItems: "xyz"
count: 3];
break;
default:
OFEnsure(0);
}
OFEnsure([[stmt objectForColumn: 0] isEqual: a]);
OFEnsure([[stmt objectForColumn: 1] isEqual: b]);
OFEnsure([[stmt objectForColumn: 2] isEqual: c]);
OFEnsure([[stmt rowArray] isEqual: ([OFArray arrayWithObjects:
a, b, c, nil])]);
OFEnsure([[stmt rowDictionary] isEqual:
([OFDictionary dictionaryWithKeysAndObjects:
@"a", a, @"b", b, @"c", c, nil])]);
}
[OFApplication terminate];
}
@end
|
|
|
|
|
|
|
|
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
c = [OFData dataWithItems: "xyz"
count: 3];
break;
default:
OFEnsure(0);
}
OFEnsure([[stmt objectForCurrentRowAtColumn: 0] isEqual: a]);
OFEnsure([[stmt objectForCurrentRowAtColumn: 1] isEqual: b]);
OFEnsure([[stmt objectForCurrentRowAtColumn: 2] isEqual: c]);
OFEnsure([[stmt currentRowArray] isEqual:
([OFArray arrayWithObjects: a, b, c, nil])]);
OFEnsure([[stmt currentRowDictionary] isEqual:
([OFDictionary dictionaryWithKeysAndObjects:
@"a", a, @"b", b, @"c", c, nil])]);
}
[OFApplication terminate];
}
@end
|