- 16 Oct, 2018 1 commit
-
-
Sergei Morozov authored
-
- 15 Oct, 2018 2 commits
-
-
Marco Pivetta authored
remove ClassLoader
-
Massimiliano Arione authored
-
- 13 Oct, 2018 2 commits
-
-
Sergei Morozov authored
Implemented handling BLOBs represented as stream resources for IBM DB2
-
Sergei Morozov authored
-
- 12 Oct, 2018 2 commits
-
-
Sergei Morozov authored
Trying to fix failing DB2 builds
-
Sergei Morozov authored
Currently, builds like https://travis-ci.org/doctrine/dbal/jobs/440354436 are failing do to an APT issue. Trying to update APT packages as per support recommendation.
-
- 07 Oct, 2018 3 commits
-
-
Sergei Morozov authored
Removed link to www.doctrine-project.org from doc blocks
-
Sergei Morozov authored
-
Marco Pivetta authored
Implemented proper escaping of string literals in platforms and schema managers
-
- 06 Oct, 2018 5 commits
-
-
Sergei Morozov authored
Deprecated regex-based asset filters
-
Sergei Morozov authored
-
Sergei Morozov authored
-
Sergei Morozov authored
Implement {Configuration#getSchemaAssetsFilter}
-
Bez Hermoso authored
-
- 03 Oct, 2018 2 commits
-
-
Marco Pivetta authored
Test against the latest stable sqlsrv extension
-
Sergei Morozov authored
-
- 02 Oct, 2018 8 commits
-
-
Marco Pivetta authored
Fixed coding standard violations in the codebase
-
Sergei Morozov authored
-
Sergei Morozov authored
-
Sergei Morozov authored
-
Sergei Morozov authored
-
Sergei Morozov authored
-
Sergei Morozov authored
-
Sergei Morozov authored
-
- 28 Sep, 2018 5 commits
-
-
Sergei Morozov authored
Updated doctrine/coding-standard to 5.0,
-
-
Sergei Morozov authored
-
Sergei Morozov authored
-
Sergei Morozov authored
-
- 27 Sep, 2018 2 commits
-
-
Marco Pivetta authored
Fix that MysqliStatement cannot handle streams
-
Matthias Pigulla authored
The blob type maps BLOB (and also TEXT) columns to PHP streams. Internally, they use the ParameterType::LARGE_OBJECT (i. e. \PDO::PARAM_LOB) binding type, which suggests that efficient handling of PHP stream resources was intended. However, at least when using the mysqli driver, stream resources passed into insert() or update() are simply cast to strings. As a result, a literal string like "Resource id #126" will end up in the database. This PR fixes the issue by correctly processing streams in the MysqliStatement when they are passed with the ParameterType::LARGE_OBJECT binding type. It uses the mysqli::send_long_data() method to pass stream data in chunks to the MySQL server, thus keeping the memory footprint low. This method does not (despite claims to the contrary) allow to bypass the max_allowed_package size! The pdo_mysql driver was already capable of handling streams this way. Now this is covered by tests. Helpful documentation: - http://php.net/manual/en/mysqli-stmt.send-long-data.php - http://php.net/manual/en/mysqli-stmt.bind-param.php - see first "Note" - http://php.net/manual/en/pdo.lobs.php - https://blogs.oracle.com/oswald/phps-mysqli-extension:-storing-and-retrieving-blobs Additional notes on MySQL's max_allowed_packet: This change does not not intend to work around the max_allowed_packet setting, and quick tests show that this is not possible: When MySQL is configured to use a low max_allowed_packet value, an error will be triggered stating Parameter of prepared statement which is set through mysql_send_long_data() is longer than 'max_allowed_packet' bytes. Documentation for the underlying mysql_stmt_send_long_data() C API function suggests that max_allowed_packet is always a hard limit. References: - https://dev.mysql.com/doc/refman/8.0/en/mysql-stmt-send-long-data.html - https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_allowed_packet - https://bugs.mysql.com/bug.php?id=83958 What mysqli::send_long_data() seems to do is that every data chunk of data passed to it is immediately sent out to the network. I have confirmed this using tcpdump, and so the advantage might be that we can keep the memory footprint low on the PHP side while processing streams.
-
- 26 Sep, 2018 1 commit
-
-
Marco Pivetta authored
Do not generate SID or SERVICE_NAME when dbname or service name is not specified
-
- 25 Sep, 2018 1 commit
-
-
Sergei Morozov authored
Refactored the logic of connection string generation
-
- 21 Sep, 2018 1 commit
-
-
Sergei Morozov authored
MariaDB improvements, support 10.3
-
- 20 Sep, 2018 1 commit
-
-
Oleg Zhulnev authored
revert back MariaDb1027Platform
-
- 12 Sep, 2018 2 commits
-
-
Sergei Morozov authored
Remove old comment from MysqliStatement
-
Matthias Pigulla authored
As discussed in #3217 (see https://github.com/doctrine/dbal/pull/3217#issuecomment-419673323 in particular), there is no way in MySQL to get around the `max_allowed_packet` limitation.
-
- 08 Sep, 2018 2 commits
-
-
Marco Pivetta authored
Use behaviuor instead of behavior
-
Gert de Pagter authored
Same as other templates
-