1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-23 10:26:21 +01:00

112 Commits

Author SHA1 Message Date
David Grudl
c464960239 Connection, Result: added format 'native' 2020-11-02 15:28:28 +01:00
David Grudl
34a1665915 coding style 2020-11-02 15:05:55 +01:00
David Grudl
177a800bff PdoDriver: changes error mode do ERRMODE_SILENT (for PHP 8.0) 2020-11-02 15:05:55 +01:00
David Grudl
fa6a1203a9 fixed compatibility with PHP 8 [Closes #379] 2020-11-02 15:05:55 +01:00
David Grudl
6e41c4223b tests: test() with description 2020-10-08 15:55:11 +02:00
Milan Pála
0bd222b3f1 tests: added reconnect test (#352) 2020-02-23 18:50:27 +01:00
Ashus
294787a26e Add support for escapeLike without % on any side (#346) (BC break) 2019-11-25 14:01:24 +01:00
David Grudl
faab306418 Translator: trims spaces from SQL [Closes #326] 2019-10-22 19:30:46 +02:00
David Grudl
0535d57e6b implemented MySqliDriver::escapeDateInterval() 2019-08-30 18:55:20 +02:00
Jan Pecha
369768a62a added Driver::escapeDateInterval() (BC break) (#334) 2019-08-30 18:55:20 +02:00
Tomáš Kuthan
7f22279333 SqlsrvDriver: Correct escaping of special characters (N prefix) (#332)
In case nvarchar type is used and e.g. chinese have to be saved, there have to be N in front of the value, this escaping works fine for varchar columns as well.
2019-08-30 18:54:06 +02:00
Chrudos Vorlicek
dd2fd654be Result::normalize() Fix select float in format of e-notation (#317) master (#321) 2018-10-25 22:33:09 +02:00
David Grudl
7a49609468 test: fix for PHP 7.3 2018-09-17 13:45:50 +02:00
Jan Kuchař
89987f0cee PdoDriver: check for misconfigured PDO connections resource (#294) 2018-09-17 13:45:50 +02:00
Miloslav Hůla
eaf2494d90 Connection: added config option onConnect (#303)
onConnect option is an array of SQL queries run by Connection::query() right after a database connection is established.
2018-09-17 13:45:50 +02:00
Dalibor Korpar
168971292d Connection::update() Support updating multiple tables at once (#316) 2018-09-17 13:45:49 +02:00
David Grudl
0ad2dd70bc tests: added complex test for %like 2018-08-22 13:45:39 +02:00
David Grudl
3930dafe3f Sqlite3Driver becomes alias for SqliteDriver 2018-05-23 17:14:32 +02:00
David Grudl
a6392db67d improved phpDoc, capitalized Dibi 2018-05-10 22:34:04 +02:00
David Grudl
bd8ce38320 MySqliDriver: refactoring, uses OOP style 2018-05-09 13:33:54 +02:00
David Grudl
8dff5b5b3c Connection::query() and Fluent::execute() always return Result, not the number of affected rows (BC break) 2018-05-09 13:26:13 +02:00
David Grudl
06a487532d Result: added getColumnCount() 2018-05-09 13:26:13 +02:00
David Grudl
7d704d7edd drivers divided into Driver and ResultDriver (BC break) 2018-05-09 11:44:43 +02:00
David Grudl
bea524a621 removed MsSqlDriver (is not available in PHP7) 2018-05-09 11:43:09 +02:00
David Grudl
030554e1ae added dibi::stripMicroseconds 2018-04-19 13:03:38 +02:00
David Grudl
d7270e1f4d Strict: extension methods are deprecated 2018-04-19 13:03:38 +02:00
David Grudl
fbdd22de35 Connection::__construct() parameter config should be array (BC break) 2018-04-19 13:03:38 +02:00
David Grudl
30dec49a9d Column: types adjustment 2018-04-19 13:03:38 +02:00
David Grudl
3050aebb48 typo 2018-04-09 16:31:40 +02:00
David Grudl
cf0129a194 Translator: improved Expression usage 2018-04-06 02:56:22 +02:00
David Grudl
2d523f6034 dibi: monostate implemented via __callStatic 2018-04-06 02:22:31 +02:00
David Grudl
8f47def4a2 DateTime: removed setTimestamp() and getTimestamp(), big int are supported in x64 PHP versions 2018-03-23 13:45:39 +01:00
David Grudl
e93bab27e9 Translator: Dibi\Expression should be used instead of array 2017-09-21 15:05:52 +02:00
David Grudl
499e3aea40 added Dibi\Expression [Closes #264] 2017-09-21 14:54:08 +02:00
David Grudl
832313bc73 whitespace 2017-09-21 14:17:14 +02:00
Miloslav Hůla
f29f52eb28 Fluent: fixed TypeError, query() may return Result|int 2017-09-07 21:28:29 +02:00
Miloslav Hůla
6550b53175 tests: connection removed from bootstrap 2017-08-05 13:41:08 +02:00
Miloslav Hůla
0c09ad97ca HasmMap: fixed empty property name access
Introduced by 3891625cd1a1cb063486b3d62f3d2846699c906a

PostgreSQL uses '::' syntax for type casting. Before this fix, HashMap returned ':\xff:' during SQL translation/substitution.
2017-08-05 13:33:36 +02:00
Jan Pecha
afe728d07a Result::fetch() removed typehint (#257) 2017-07-22 11:14:39 +02:00
David Grudl
2d5ac775bc used safe casting to int (BC break) 2017-07-22 00:56:27 +02:00
David Grudl
49e90517b9 Translator: %i %f throws exception when value is not numeric (BC break) 2017-07-22 00:40:14 +02:00
hubipe
60978bb176 Microsoft SQL Server and MSSQL support for microseconds fix (#249) 2017-07-21 23:04:42 +02:00
David Grudl
dac0a116a8 coding style: fixes in code 2017-07-21 22:53:46 +02:00
David Grudl
a299c622c3 coding style: TRUE/FALSE/NULL -> true/false/null 2017-07-21 22:53:45 +02:00
David Grudl
3b37295e78 coding style: fixed spaces & use statements order 2017-07-21 22:53:45 +02:00
David Grudl
a6028054d6 added declare(strict_types=1); 2017-06-10 03:45:33 +02:00
David Grudl
957d9281f3 strict type fixes 2017-06-10 03:45:32 +02:00
David Grudl
859eada4e7 added PHP 7.1 scalar and return type hints 2017-06-10 03:45:29 +02:00
David Grudl
7d42317279 fetch(), fetchSingle(), getAffectedRows(), getInsertId() return NULL instead of FALSE on error (BC break) 2017-06-10 03:22:05 +02:00
David Grudl
3891625cd1 used PHP 7.1 features
- ::class
- ... argument unpacking
- removed call_user_func
- operator ??
- list()
- short <?=
2017-06-10 03:16:59 +02:00