Skip to content

Commit 8b5f7bf

Browse files
committed
Use smart_str_appends instead of smart_str_appendl
1 parent a5494bd commit 8b5f7bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/pgsql/pgsql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5660,7 +5660,7 @@ PHP_PGSQL_API zend_result php_pgsql_insert(PGconn *pg_link, const zend_string *t
56605660
if (opt & PGSQL_DML_ESCAPE) {
56615661
int error;
56625662
char *tmp = safe_emalloc(Z_STRLEN_P(val), 2, 1);
5663-
size_t new_len = PQescapeStringConn(pg_link, tmp, Z_STRVAL_P(val), Z_STRLEN_P(val), &error);
5663+
PQescapeStringConn(pg_link, tmp, Z_STRVAL_P(val), Z_STRLEN_P(val), &error);
56645664
if (error) {
56655665
php_error_docref(NULL, E_NOTICE, "Failed to escape field '%s' value", ZSTR_VAL(fld));
56665666
efree(tmp);
@@ -5843,7 +5843,7 @@ static inline int build_assignment_string(PGconn *pg_link, smart_str *querystr,
58435843
if (opt & PGSQL_DML_ESCAPE) {
58445844
int error;
58455845
char *tmp = (char *)safe_emalloc(Z_STRLEN_P(val), 2, 1);
5846-
size_t new_len = PQescapeStringConn(pg_link, tmp, Z_STRVAL_P(val), Z_STRLEN_P(val), &error);
5846+
PQescapeStringConn(pg_link, tmp, Z_STRVAL_P(val), Z_STRLEN_P(val), &error);
58475847
if (error) {
58485848
php_error_docref(NULL, E_NOTICE, "Failed to escape field '%s' value", ZSTR_VAL(fld));
58495849
efree(tmp);

0 commit comments

Comments
 (0)