summaryrefslogtreecommitdiffstats
path: root/database/postgresql/prepared-sql.c
diff options
context:
space:
mode:
Diffstat (limited to 'database/postgresql/prepared-sql.c')
-rw-r--r--database/postgresql/prepared-sql.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/database/postgresql/prepared-sql.c b/database/postgresql/prepared-sql.c
index 7697478..1353038 100644
--- a/database/postgresql/prepared-sql.c
+++ b/database/postgresql/prepared-sql.c
@@ -634,6 +634,15 @@ int ePGprepParamsAddArgumentInt(eurephiaCTX *ctx, ePGprepParams *prms, const int
}
+int ePGprepParamsAddArgumentChar(eurephiaCTX *ctx, ePGprepParams *prms, const char arg) {
+ char argstr[3];
+
+ memset(&argstr, 0, 3);
+ snprintf(argstr, 2, "%c", arg);
+ return ePGprepParamsAddArgument(ctx, prms, argstr);
+}
+
+
PGresult * ePGprepExec(eurephiaCTX *ctx, ePGprepParams *qry_args)
{
int i = 0;