Skip to content

Tags: harikb/pgx

Tags

v2.4.0

Toggle v2.4.0's commit message
Release v2.4.0

Update changelog

v2.3.0

Toggle v2.3.0's commit message
Started a changelog

v2.2.0

Toggle v2.2.0's commit message
Improve wrong number of arguments error message for Rows.Scan

fixes jackc#33

v2.1.0

Toggle v2.1.0's commit message
Always use bound parameters

PostgreSQL has two string syntaxes, one that allows backslash escapes and one
that does not (SQL standard conforming strings). By default PostgreSQL uses
standard conforming strings. QuoteString was only designed for use with
standard conforming strings. If PostgreSQL was configured with certain
combinations of the standard_conforming_strings and backslash_quote settings,
QuoteString may not correctly sanitize strings. QuoteString was only used in
unprepared queries, bound parameters are used for prepared queries.

This commit alters pgx to use always use bound parameters.

As a consequence of never doing string interpolation there is no need to have
separate Text and Binary encoders. There is now only the Encoder interface.

This change had a negative effect on the performance of simple unprepared
queries, but prepared statements should already be used for performance.

fixes jackc#26

jackc#26

v2.0.0

Toggle v2.0.0's commit message
Add docs for pgx/stdlib