src/server/plugins/postgresql/pgtest.c

branch
webdav
changeset 298
8f5c556120a5
parent 297
14cd7137a3a8
child 306
e03737cea6e2
equal deleted inserted replaced
297:14cd7137a3a8 298:8f5c556120a5
272 UCX_TEST_ASSERT(r == 0, "unlink failed"); 272 UCX_TEST_ASSERT(r == 0, "unlink failed");
273 273
274 f1 = vfs_open(vfs, "/test_unlink1", O_RDONLY); 274 f1 = vfs_open(vfs, "/test_unlink1", O_RDONLY);
275 UCX_TEST_ASSERT(f1 == NULL, "test file not deleted"); 275 UCX_TEST_ASSERT(f1 == NULL, "test file not deleted");
276 276
277 //int pgfd = lo_open(test_connection, oid, INV_READ); 277 PGresult *result = PQexec(test_connection, "savepoint sp;");
278 //UCX_TEST_ASSERT(pgfd < 0, "large object not deleted"); 278 PQclear(result);
279 int pgfd = lo_open(test_connection, oid, INV_READ);
280 UCX_TEST_ASSERT(pgfd < 0, "large object not deleted");
281 result = PQexec(test_connection, "rollback to savepoint sp;");
282 PQclear(result);
279 283
280 r = vfs_unlink(vfs, "/test_unlink1"); 284 r = vfs_unlink(vfs, "/test_unlink1");
281 UCX_TEST_ASSERT(r, "unlink should fail"); 285 UCX_TEST_ASSERT(r, "unlink should fail");
282 286
283 UCX_TEST_END; 287 UCX_TEST_END;

mercurial