Skip to content

Commit fbd75a1

Browse files
committed
Fix GH-2198: Typo in pg_insert() example
1 parent fadab82 commit fbd75a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/pgsql/functions/pg-insert.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
// This is safe somewhat, since all values are escaped.
128128
// However PostgreSQL supports JSON/Array. These are not
129129
// safe by neither escape nor prepared query.
130-
$res = pg_insert($dbconn, 'post_log', $_POST, PG_DML_ESCAPE);
130+
$res = pg_insert($dbconn, 'post_log', $_POST, PGSQL_DML_ESCAPE);
131131
if ($res) {
132132
echo "POST data is successfully logged\n";
133133
} else {

0 commit comments

Comments
 (0)