Skip to content

Releases: amphp/postgres

2.0.0 Beta 1

17 Jul 17:33
v2.0.0-beta.1
446956d
Compare
Choose a tag to compare
2.0.0 Beta 1 Pre-release
Pre-release

Initial release compatible with AMPHP v3.

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • Marked most classes as internal, leaving only interfaces and concrete implementations required to use the API or create a custom connector.
  • Added Postgres as a prefix to interfaces and non-extension-specific classes.
  • Renamed ConnectionConfig to PostgresConfig
  • Removed TimeoutConnector in favor of DefaultPostgresConnector, which has a Cancellation parameter on connect() (use Amp\TimeoutCancellation with this parameter for similar behavior to TimeoutConnector)

1.4.3

04 Dec 16:57
f52cc35
Compare
Choose a tag to compare
  • Fixed compatibility with PHP 8.1.

1.4.2

24 Sep 19:11
71d1925
Compare
Choose a tag to compare
  • Fix foreach on null if an ext-pq connection poll fails. (#46)

1.4.1

25 Aug 04:20
403d39c
Compare
Choose a tag to compare
  • Fixed type table caching for ext-pgsql.
  • Fixed another command is already in progress errors being emitted from the ext-pq driver that could happen during periods of heavy load. (#41, #44)
  • Fixed an issue with the ext-pgsql driver where if a result was not consumed before a transaction was committed that a PHP notice would be issued about unconsumed results. (#23)
  • Fixed simultaneous statement allocation and deallocation which could cause a statement to subsequently not be found on a connection. (#38)

1.4.0

23 Aug 14:14
2479a0b
Compare
Choose a tag to compare

Improved automatic type casting and parsing of array types in the ext-pgsql driver to cover all possible built-in and custom types by querying the server for all type definitions and casting/parsing based on those definitions. Types are cached on the client based on the combination of host, port, and username.

1.3.3

07 Feb 17:50
1579d9f
Compare
Choose a tag to compare
  • Fixed case where operators containing question mark were erroneously substituted by the prepared statement parameter parser (#40)
  • Fixed using the same numbered parameter multiple times in a prepared statement

1.3.2

06 Dec 22:13
b1a2f34
Compare
Choose a tag to compare

Fixed PHP version requirement to allow PHP 8.

1.3.1

12 Aug 15:23
b027714
Compare
Choose a tag to compare
  • Pool now uses DISCARD ALL instead of RESET ALL to restore pooled connections to initial state. (#34)

1.3.0

05 Aug 12:44
Compare
Choose a tag to compare
  • Added sslmode to the available connection configuration options. See https://www.postgresql.org/docs/current/libpq-ssl.html for possible modes.
  • Fixed an issue where a query resulting in an error may cause the next query to fail due to the connection being "busy" when using ext-pq.
  • Fixed providing the SQL query string to the exception when throwing a QueryExecutionError.

1.2.1

17 Feb 19:06
54186c9
Compare
Choose a tag to compare
  • Fixed a bug where more than one transaction could be created on a connection if three or more transactions where requested simultaneously (this bug did not affect pools).