Lines Matching refs:pool
25 rv = func(pool, sql, driver); \
34 static int create_table(apr_pool_t* pool, apr_dbd_t* handle,
46 static int drop_table(apr_pool_t* pool, apr_dbd_t* handle,
55 static int insert_rows(apr_pool_t* pool, apr_dbd_t* handle,
93 static int invalid_op(apr_pool_t* pool, apr_dbd_t* handle,
107 static int select_sequential(apr_pool_t* pool, apr_dbd_t* handle,
117 rv = apr_dbd_select(driver,pool,handle,&res,statement,0);
122 for (rv = apr_dbd_get_row(driver, pool, res, &row, -1);
124 rv = apr_dbd_get_row(driver, pool, res, &row, -1)) {
139 static int select_random(apr_pool_t* pool, apr_dbd_t* handle,
148 rv = apr_dbd_select(driver,pool,handle,&res,statement,1);
153 rv = apr_dbd_get_row(driver, pool, res, &row, 5) ;
169 rv = apr_dbd_get_row(driver, pool, res, &row, 1) ;
185 rv = apr_dbd_get_row(driver, pool, res, &row, 11) ;
195 static int test_transactions(apr_pool_t* pool, apr_dbd_t* handle,
205 rv = apr_dbd_transaction_start(driver, pool, handle, &trans);
215 apr_dbd_transaction_end(driver, pool, trans);
229 rv = apr_dbd_transaction_end(driver, pool, trans);
237 select_sequential(pool, handle, driver);
241 rv = apr_dbd_transaction_start(driver, pool, handle, &trans);
251 apr_dbd_transaction_end(driver, pool, trans);
258 rv = apr_dbd_transaction_end(driver, pool, trans);
265 select_sequential(pool, handle, driver);
268 static int test_pselect(apr_pool_t* pool, apr_dbd_t* handle,
281 rv = apr_dbd_prepare(driver, pool, handle, query, label, &statement);
287 rv = apr_dbd_pvselect(driver, pool, handle, &res, statement, 0, "3", NULL);
295 for (rv = apr_dbd_get_row(driver, pool, res, &row, -1);
297 rv = apr_dbd_get_row(driver, pool, res, &row, -1)) {
312 static int test_pquery(apr_pool_t* pool, apr_dbd_t* handle,
322 rv = apr_dbd_prepare(driver, pool, handle, query, label, &statement);
323 /* rv = apr_dbd_prepare(driver, pool, handle, query, NULL, &statement); */
329 apr_dbd_transaction_start(driver, pool, handle, &trans);
330 rv = apr_dbd_pvquery(driver, pool, handle, &nrows, statement,
332 apr_dbd_transaction_end(driver, pool, trans);
339 select_sequential(pool, handle, driver);
346 apr_pool_t *pool = NULL;
352 apr_pool_create(&pool, NULL);
357 apr_dbd_init(pool);
359 rv = apr_dbd_get_driver(pool, name, &driver);
377 rv = apr_dbd_open(driver, pool, params, &sql);
404 apr_pool_destroy(pool);