Skip to content

Releases: nette/database

Released version 3.0.3

19 Nov 18:30
@dg dg
Compare
Choose a tag to compare
  • SqlPreprocessor: fixed casting to string
  • Structure: foreign keys with less columns have bigger priority (#170)
  • Structure tests: driver should return also name of foreign key constraint
  • fixed typehint (#236)

For the details you can have a look at the diff.

Released version 3.0.2

08 Jul 20:27
@dg dg
Compare
Choose a tag to compare
  • ResultSet: added workaround for PDO bug #38546 (#231)
  • SqlPreprocessor: generates IS NOT NULL (#226)
  • Revert "Table: moved caching related functionality to separate classes (#185)"
  • Structure::getBelongsToReference() return value fix
  • Selection: typefix for referencing table primary key
  • ResultSet: only format strings as floats (#228)
  • SqlBuilder: Fixed loading arguments for left join conditions (#224)
  • Use phpstan callable format (#220)

For the details you can have a look at the diff.

Released version 3.0.1

03 Apr 21:18
@dg dg
Compare
Choose a tag to compare
  • DatabaseExtension: uses configuration Schema
  • Revert "DatabaseExtension: better detection of single/multiple definitions" #219
  • ConnectionPanel: fixed bad source file nette/tracy#346

For the details you can have a look at the diff.

Released version 3.0.0 🎉

20 Feb 07:12
@dg dg
Compare
Choose a tag to compare

Features

  • requires PHP 7.1
  • uses declare(strict_types=1)
  • uses PHP 7.1 scalar and return type hints
  • Helpers::loadFromFile added $onProgress
  • SqlBuilder::tryDelimite() ignores casting ::int
  • MsSql support for tables, columns, indexes, foreign keys (#215)
  • Selection: fixed insert spoiling PDO:lastInsertId (#217)
  • SqlBuilder: fixed compatiblity with PCRE2 used in PHP 7.3 [Closes #210]

Changes

  • SqlPreprocessor: scalar are always passed via bindValue() (BC break)
  • ResultSet: changed empty result return type of fetch() and fetchField() methods from FALSE to NULL [BC Break]
  • removed unused ISupplementalDriver::normalizeRow() (BC break)
  • removed unused ISupplementalDriver::formatBool()
  • ISupplementalDriver: uncommented formatDateInterval() & getPrimaryAutoincrementKey()
  • added ISupplementalDriver::initialize(), is used instead of constructor (BC break!)
  • IRowContainer: Added method fetchField() (BC break)
  • remove old sqlite2 driver (#155)
  • removed meta info unsigned, onDelete, onUpdate
  • Table: moved caching related functionality to separate classes (#185)

Released version 2.4.8

26 Nov 15:25
@dg dg
Compare
Choose a tag to compare
  • SqlBuilder: fixed compatiblity with PCRE2 used in PHP 7.3 #208 #210
  • PgSqlDriver: uses cache for getColumnTypes() to avoid excessive number of queries #212
  • SqlPreprocessor: enables database parameters only for SELECT, INSERT, UPDATE, DELETE, REPLACE and EXPLAIN #211
  • Connection::quote() throws exception on error (related to #202)

For the details you can have a look at the diff.

Released version 2.4.7

16 Oct 12:59
@dg dg
Compare
Choose a tag to compare
  • Selection: Fixed accidental deletion of referenced cached rows when emptyResultSet is called (#187)(#207)
  • SqlBuilder: added method resetSelect (#146)
  • Fixed Helpers::dumpResult with non-string values (#204)
  • Connection, Context: added fetchFields()
  • SqlPreprocessor: strings are always passed via bindValue() (possible BC break)
  • SqlPreprocessor: PDO::quote() returns false for ODBC driver #202
  • OdbcDriver: doesn't support meta
  • MySqlDriver: Fix PDO::ATTR_CASE (#199)
  • added Connection::getLastQueryString()
  • appveyor: is unable to start MSSQL 2008, 2012 & 2014 together

For the details you can have a look at the diff.

Released version 2.4.6

01 Jun 15:51
@dg dg
Compare
Choose a tag to compare
  • Helpers::detectTypes() added support for TIMESTAMP WITH TIME ZONE in PostgreSQL #163 (#198)
  • ResultSet: reads fraction of seconds to DateInterval (#197)
  • ActiveRow: __isset checks the existence of the relation (#196)
  • ConnectionPanel: compatibility with Tracy 2.5

For the details you can have a look at the diff.

Released version 2.4.5

06 Feb 14:41
@dg dg
Compare
Choose a tag to compare
  • fixed PHP 7.2 compatibility (#190)
  • SqlBuilder: UPDATE supports ORDER BY (#179)
  • NDBT return types changed from IRow to ActiveRow

For the details you can have a look at the diff.

Released version 2.4.4

27 Jul 10:56
@dg dg
Compare
Choose a tag to compare
  • supports PHP up to 7.2
  • SqlPreprocessor: workaround for PDO bug #74996 when looking for ? in prepared query #177
  • composer: requires nette/utils 2.4 for PHP 7.2

For the details you can have a look at the diff.

Released version 2.4.3

14 Jul 07:40
@dg dg
Compare
Choose a tag to compare
  • fetchPairs() supports floats in keys
  • coding style: fixes, lowercase true/false/null
  • SqliteDriver::getColumns() fix regexp for autoincrement recognition (#168)
  • DatabaseExtension: added support for constants in options values
  • OciDriver: do not use meta, driver is not meta-aware

For the details you can have a look at the diff.