Lines Matching refs:assert

94           assert(PQresultStatus(res) == PGRES_NONFATAL_ERROR ||  in dumperror()
114 assert(cc != NULL); in getxc()
118 assert(xc->owner == NULL); in getxc()
123 assert(xc->owner == xc->blocker); in getxc()
135 assert(xc->in_trans); in relxc()
136 assert(xc->owner != NULL); in relxc()
154 assert(xc->blocker == NULL); in pqwait()
160 assert(xc->owner == cc); in pqwait()
161 assert(xc->blocker == cc); in pqwait()
244 assert(type == BYTEA || in createcmd()
284 assert(PQnfields(res) == 0); in fetch_noresult()
285 assert(PQntuples(res) == 0); in fetch_noresult()
293 assert(error != 0); in fetch_noresult()
302 assert(res == NULL); in fetch_noresult()
320 assert((c->flags & CMD_NOPREPARE) == 0); in preparecmd()
353 assert(xc->owner != NULL); in vsendcmd()
354 assert(xc->blocker == NULL); in vsendcmd()
397 assert(sz != -1); in vsendcmd()
398 assert((size_t)sz < sizeof(tmpstore)); in vsendcmd()
514 assert(errno == 0); in getint()
515 assert(str[0] != 0); in getint()
516 assert(*ep == 0); in getint()
526 assert(conn != NULL); in vfetchnext()
541 assert(error != 0); in vfetchnext()
549 assert((unsigned int)PQnfields(s->res) == n); in vfetchnext()
555 assert(s->nrows >= 1); in vfetchnext()
561 assert((types[i] != BYTEA) == (PQfformat(s->res, i) == 0)); in vfetchnext()
567 assert(PQftype(s->res, i) == types[i]); in vfetchnext()
568 assert(!PQgetisnull(s->res, s->cur, i)); in vfetchnext()
651 assert(error != 0 || s.res == NULL); in simplefetch()
685 assert(error == 0); in setlabel()
693 assert(error == 0); in setlabel()
707 assert(!xc->in_trans); in begin()
709 assert(error == 0); in begin()
710 assert(PQtransactionStatus(xc->conn) == PQTRANS_INTRANS); in begin()
724 assert(!xc->in_trans); in begin_readonly()
726 assert(error == 0); in begin_readonly()
727 assert(PQtransactionStatus(xc->conn) == PQTRANS_INTRANS); in begin_readonly()
742 assert(status != PQTRANS_ACTIVE); in rollback()
743 assert(status != PQTRANS_UNKNOWN); in rollback()
748 assert(status == PQTRANS_INTRANS || status == PQTRANS_INERROR); in rollback()
751 assert(error == 0); in rollback()
780 assert(!pgfs_dosync); in commit_sync()
783 assert(error == 0); in commit_sync()
792 assert(PQresultStatus(res) == PGRES_NONFATAL_ERROR); in pgfs_notice_receiver()
809 assert(xc != NULL); in pgfs_readframe()
889 assert(xc->id < 32); in pgfs_connectdb()
893 assert(xc2 == xc); in pgfs_connectdb()
896 assert(error == 0); in pgfs_connectdb()
902 assert(error == 0); in pgfs_connectdb()
906 assert(error == 0); in pgfs_connectdb()
912 assert(error == 0); in pgfs_connectdb()
923 assert(error == 0); in pgfs_connectdb()
927 assert(error == 0); in pgfs_connectdb()
931 assert(error == 0); in pgfs_connectdb()
932 assert(xc->owner == NULL); in pgfs_connectdb()
971 assert(!pgfs_dosync); in flush_xacts()
975 assert(flusher == NULL); in flush_xacts()
988 assert(error != 0 || dummy == 1); in flush_xacts()
1010 assert(flusher == cc); in flush_xacts()