/home/martin/workspace/OpenStreetNav/src/psql/PqTypeWrap.cpp
Go to the documentation of this file.
00001 /*
00002  * PqTypeWrap.cpp
00003  *
00004  *  Created on: Nov 22, 2011
00005  *      Author: martin
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 } /* namespace display */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines