void pg_newid(ClipMachine* mp,SQLSTMT* stmt){ char* oidstr = (char*)PQoidStatus(((PG_STMT*)stmt)->res); if(oidstr){ _clip_retni(mp,atoi(oidstr)); } }
/************************************************************* * Returns a string with the object id of the tuple inserted if the last query is an INSERT command. Otherwise, returns an empty string. *************************************************************/ char * dbi_getlastoid(DBI_result *result_id) { return(PQoidStatus(result_id)); }