Skip to content

Commit

Permalink
fix: From Nick Altmann: Fix wrong variable usege when escape STR type…
Browse files Browse the repository at this point in the history
… in db_postgres
  • Loading branch information
NormB authored and razvancrainea committed Aug 10, 2021
1 parent 41b4a01 commit 0d2dac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/db_postgres/val.c
Expand Up @@ -270,7 +270,7 @@ int db_postgres_val2str(const db_con_t* _con, const db_val_t* _v,
} else {
old_s = _s;
*_s++ = '\'';
ret = PQescapeStringConn(CON_CONNECTION(_con), _s, VAL_STRING(_v),
ret = PQescapeStringConn(CON_CONNECTION(_con), _s, VAL_STR(_v).s,
l, &pgret);
if(pgret!=0)
{
Expand Down

0 comments on commit 0d2dac3

Please sign in to comment.