diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2012-02-24 00:15:15 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2013-06-13 01:06:19 +0200 |
commit | d1a5511b9cb71b366f6f98b5da075a95373b47cd (patch) | |
tree | 4ad51b01b84c8b84f1f913b7f8a9ce666e01d274 /database/postgresql/prepared-sql.h | |
parent | 1af49dea1e1819e5d7ca0692f0f4fb5e82252602 (diff) | |
download | eurephia-d1a5511b9cb71b366f6f98b5da075a95373b47cd.tar.gz eurephia-d1a5511b9cb71b366f6f98b5da075a95373b47cd.tar.xz eurephia-d1a5511b9cb71b366f6f98b5da075a95373b47cd.zip |
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 <dazo@users.sourceforge.net>
Diffstat (limited to 'database/postgresql/prepared-sql.h')
-rw-r--r-- | database/postgresql/prepared-sql.h | 1 |
1 files changed, 0 insertions, 1 deletions
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); |