Lines Matching refs:pgsql_result
620 PGresult *pgsql_result; in pgsqlCopyFromArray_internal() local
648 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyFromArray_internal()
649 PQclear(pgsql_result); in pgsqlCopyFromArray_internal()
651 pgsql_result = PQexec(H->server, query); in pgsqlCopyFromArray_internal()
656 if (pgsql_result) { in pgsqlCopyFromArray_internal()
657 status = PQresultStatus(pgsql_result); in pgsqlCopyFromArray_internal()
662 if (status == PGRES_COPY_IN && pgsql_result) { in pgsqlCopyFromArray_internal()
667 PQclear(pgsql_result); in pgsqlCopyFromArray_internal()
702 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyFromArray_internal()
703 if (PGRES_COMMAND_OK != PQresultStatus(pgsql_result)) { in pgsqlCopyFromArray_internal()
704 pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, pdo_pgsql_sqlstate(pgsql_result)); in pgsqlCopyFromArray_internal()
707 PQclear(pgsql_result); in pgsqlCopyFromArray_internal()
713 pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, pdo_pgsql_sqlstate(pgsql_result)); in pgsqlCopyFromArray_internal()
714 PQclear(pgsql_result); in pgsqlCopyFromArray_internal()
735 PGresult *pgsql_result; in pgsqlCopyFromFile_internal() local
766 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyFromFile_internal()
767 PQclear(pgsql_result); in pgsqlCopyFromFile_internal()
769 pgsql_result = PQexec(H->server, query); in pgsqlCopyFromFile_internal()
773 if (pgsql_result) { in pgsqlCopyFromFile_internal()
774 status = PQresultStatus(pgsql_result); in pgsqlCopyFromFile_internal()
779 if (status == PGRES_COPY_IN && pgsql_result) { in pgsqlCopyFromFile_internal()
784 PQclear(pgsql_result); in pgsqlCopyFromFile_internal()
803 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyFromFile_internal()
804 if (PGRES_COMMAND_OK != PQresultStatus(pgsql_result)) { in pgsqlCopyFromFile_internal()
805 pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, pdo_pgsql_sqlstate(pgsql_result)); in pgsqlCopyFromFile_internal()
808 PQclear(pgsql_result); in pgsqlCopyFromFile_internal()
815 pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, pdo_pgsql_sqlstate(pgsql_result)); in pgsqlCopyFromFile_internal()
816 PQclear(pgsql_result); in pgsqlCopyFromFile_internal()
838 PGresult *pgsql_result; in pgsqlCopyToFile_internal() local
862 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyToFile_internal()
863 PQclear(pgsql_result); in pgsqlCopyToFile_internal()
872 pgsql_result = PQexec(H->server, query); in pgsqlCopyToFile_internal()
875 if (pgsql_result) { in pgsqlCopyToFile_internal()
876 status = PQresultStatus(pgsql_result); in pgsqlCopyToFile_internal()
881 if (status == PGRES_COPY_OUT && pgsql_result) { in pgsqlCopyToFile_internal()
882 PQclear(pgsql_result); in pgsqlCopyToFile_internal()
908 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyToFile_internal()
909 PQclear(pgsql_result); in pgsqlCopyToFile_internal()
914 pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, pdo_pgsql_sqlstate(pgsql_result)); in pgsqlCopyToFile_internal()
915 PQclear(pgsql_result); in pgsqlCopyToFile_internal()
938 PGresult *pgsql_result; in pgsqlCopyToArray_internal() local
953 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyToArray_internal()
954 PQclear(pgsql_result); in pgsqlCopyToArray_internal()
963 pgsql_result = PQexec(H->server, query); in pgsqlCopyToArray_internal()
966 if (pgsql_result) { in pgsqlCopyToArray_internal()
967 status = PQresultStatus(pgsql_result); in pgsqlCopyToArray_internal()
972 if (status == PGRES_COPY_OUT && pgsql_result) { in pgsqlCopyToArray_internal()
973 PQclear(pgsql_result); in pgsqlCopyToArray_internal()
991 while ((pgsql_result = PQgetResult(H->server))) { in pgsqlCopyToArray_internal()
992 PQclear(pgsql_result); in pgsqlCopyToArray_internal()
995 pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, pdo_pgsql_sqlstate(pgsql_result)); in pgsqlCopyToArray_internal()
996 PQclear(pgsql_result); in pgsqlCopyToArray_internal()