From d1a5511b9cb71b366f6f98b5da075a95373b47cd Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 24 Feb 2012 00:15:15 +0100 Subject: edb-pgsql: Reworked the prepared statement loading Rewrote the loading of prepared statements to be able to switch which statements are loaded, based on the eurephia context type. This ensures that the database connection for the OpenVPN connection will not have any prepared statements related to the administration queries. With this change, it also made sense to replace the ePGprepStatementGetID() function with ePGprepGetStatement() which returns a pointer directly to related statement, instead of looking up the "slot ID" for the requested statement. Signed-off-by: David Sommerseth --- database/postgresql/prepared-sql.h | 1 - 1 file changed, 1 deletion(-) (limited to 'database/postgresql/prepared-sql.h') diff --git a/database/postgresql/prepared-sql.h b/database/postgresql/prepared-sql.h index 0d09f20..c8664db 100644 --- a/database/postgresql/prepared-sql.h +++ b/database/postgresql/prepared-sql.h @@ -61,7 +61,6 @@ typedef struct _ePGprepParam_s { char **params; } ePGprepParams; -int ePGprepStatementGetID(ePG_prepID prepid); const char const * ePGprepStatementGetName(eurephiaCTX *ctx, ePG_prepID prepid); int ePGprepLoadStatements(eurephiaCTX *ctx); ePGprepParams * ePGprepParamsAlloc(eurephiaCTX *ctx, ePG_prepID prepid); -- cgit