112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
}
- (void)bindWithArray: (OFArray *)array
{
void *pool = objc_autoreleasePoolPush();
int column = 0;
if (array.count > sqlite3_bind_parameter_count(_stmt))
@throw [OFOutOfRangeException exception];
for (id object in array)
bindObject(self, ++column, object);
objc_autoreleasePoolPop(pool);
}
|
>
>
>
|
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
}
- (void)bindWithArray: (OFArray *)array
{
void *pool = objc_autoreleasePoolPush();
int column = 0;
if (array.count > INT_MAX)
@throw [OFOutOfRangeException exception];
if ((int)array.count > sqlite3_bind_parameter_count(_stmt))
@throw [OFOutOfRangeException exception];
for (id object in array)
bindObject(self, ++column, object);
objc_autoreleasePoolPop(pool);
}
|