Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include "PqTypeWrap.h"
00009 #include "PgSqlException.h"
00010
00011 namespace psql
00012 {
00013
00014 void zero_get_check(int i)
00015 {
00016 if (i == 0)
00017 throw PgSqlException("Error extracting column value " + std::string(PQgeterror()));
00018 }
00019
00020 void zero_put_check(int i)
00021 {
00022 if (i == 0)
00023 throw PgSqlException("Error storing parameter value " + std::string(PQgeterror()));
00024 }
00025
00026 }