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
4b85f0a973
travis: uses NCS 2
2018-09-13 03:28:02 +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
e8638239e9
appveyor: use x64 PHP
2018-03-23 15:15:22 +01: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
David Grudl
5c41282b88
coding standard: added exception for HashMap.php
2017-08-05 13:42:47 +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
David Grudl
ba927b4782
travis: use stages
2017-07-24 14:40:41 +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
David Grudl
7f8e36c1e1
removed PHP < 7.1 support
2017-06-10 03:16:59 +02:00
hubipe
ed0cb63df0
Support for microseconds ( #246 )
2017-06-10 03:06:01 +02:00
David Grudl
126422ad7e
strict fixes
2017-06-10 03:05:18 +02:00
David Grudl
277f52c928
appveyor: is unable to start MSSQL 2012 & 2014 together
2017-06-10 02:58:47 +02:00
David Grudl
d9628f933d
coding style: removed space after reference &
2017-06-10 02:58:47 +02:00