David Grudl
48adcec6dc
added DibiSqlsrvDriver as alias for DibiMsSql2005Driver
2015-10-26 14:28:55 +01:00
David Grudl
965570c067
removed unused code
2015-10-22 02:43:57 +02:00
David Grudl
6dcdd68d6d
removed @author
2015-10-06 12:10:21 +02:00
David Grudl
9ad502887b
used https
2015-10-06 12:10:20 +02:00
David Grudl
ca99b0b822
improved coding style
2015-06-19 15:00:23 +02:00
Miloslav Hůla
999f51a7bd
OracleDriver: cast type NUMBER(p, 0) as an INTEGER
...
In many cases, Oracle returns integers as a NUMBER(8,0). Type NUMBER is casted to (float) which is unnecessary in this case.
2015-04-17 15:22:45 +02:00
Miloslav Hůla
06440ab6dc
OracleDriver: shut-up oci_execute()
...
The oci_execute() emits warnings e.g. on denied permissions when EXPLAIN.
2015-04-17 15:17:14 +02:00
David Grudl
2de32b66e1
Merge pull request #174 from baasha/baasha-patch-1
...
DibiPdoDriver::escape() added support for dblib
2015-03-27 00:05:09 +01:00
baasha
1829366fc9
DibiPdoDriver::escape() added support for dblib
...
Fixed escaping for linux version of mssql driver - dblib.
2015-03-26 23:47:06 +01:00
Radovan Kepák
94f34a2a33
DibiPdoDriver: added support for version specified in options
...
If driver do not support ATTR_SERVER_VERSION (like dblib) fallback to the version from config, or set null as we do not know what is the driver version.
I belive this is better solution then add some creazy switch with queries for all possible versions on all drivers, and becouse it is faster to pass variable then run query asking about version.
2015-03-12 15:11:04 +01:00
Radovan Kepák
3779a5034a
DibiPdoDriver: added support for MsSql2012 Offset
...
Since MsSql2012 allow using of OFFSET, I added this option to the driver for PDO. Driver will automaticly recognize this is proper version and use the new offset.
2015-02-20 09:04:43 +01:00
Miloslav Hůla
91e2d76a0a
Postgre: fixed %like escaping [ Closes #159 ]
2015-01-23 09:13:05 +01:00
David Grudl
9a95edf003
Merge pull request #149 from JirkaChadima/oracle-schema
...
Oracle: adds support for login schema option
2015-01-13 05:25:33 +01:00
David Grudl
26b167fe13
DibiMySqliDriver.php: fixes for HHVM
2015-01-12 11:01:46 +01:00
David Grudl
100f978b9b
DibiPdoDriver: missing driver throws DibiNotSupportedException exception
2015-01-12 11:01:12 +01:00
David Grudl
50782c037c
DibiSqliteReflector: fixed detection of autoincrement
2015-01-12 08:58:27 +01:00
David Grudl
ddbf8c779e
DibiOdbcDriver: compatible applyLimit
2015-01-12 04:45:30 +01:00
David Grudl
e2fe4d122e
DibiPdoDriver: improved and fixed escaping
2015-01-12 04:45:30 +01:00
Ing. Andrej Poliak
4f315a0d74
DibiPostgreDriver: added support for pg_ping [ Closes #144 ]
2015-01-10 18:41:56 +01:00
Jirka Chadima
985f59a2b2
MSSQL: Adds limit support for PDO dblib driver on unix
2014-11-04 11:43:05 +01:00
Pavel Zelezny
dc688f3ee7
Oracle use double quotes for escaping
2014-10-26 13:56:34 +01:00
Jirka Chadima
4e99d7821c
Oracle: adds support for login schema option
2014-10-21 17:01:59 +02:00
Rossler Jan
7c35e49a1c
PostgreSQL: fixed identifier escaping in reflection.
2014-07-16 14:06:14 +02:00
Rossler Jan
f89a2310cc
PostgreSQL: fixed search path resolution in table and column reflection.
2014-07-07 01:51:56 +02:00
David Grudl
60893a1c11
removed some old and deprecated stuff
2014-06-02 16:35:19 +02:00
Rossler Jan
fee5c294d8
PostgreSQL: added support for reflection of materialized views.
2014-05-13 17:45:46 +02:00
Patrik Votocek
176b1a8895
Add support for DateTimeInterface
2014-03-24 19:03:31 +01:00
Erik Fercak
7fc3d76072
Add aposthrophes back to dates
...
Commit 7318658017
removed apostrophes from dates and that caused
dibi to build different queries. Compare:
...WHERE `date_created` < '2014-02-21';
vs.
...WHERE `date_created` < 2014-02-21;
2014-02-21 14:08:07 +01:00
Ondrej Brablc
6666d71e5b
Avoid error handler invocation
2014-02-20 18:47:35 +01:00
David Grudl
2769f1ae0a
typos
2014-02-04 03:09:31 +01:00
Etienne CHAMPETIER
7318658017
Use DateTime instead of date()
...
On 32bits systems, date() is affected bug the 2038 bug
DateTime always uses 64bits representation [Closes #110 ]
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net >
2013-12-12 18:14:17 +01:00
David Grudl
3b1e9e2632
typos
2013-10-17 01:20:44 +02:00
Jiří Pudil
5599dde525
Implemented getForeignKeys() in DibiMySqlReflector
2013-10-17 01:20:42 +02:00
David Grudl
e87c112d71
typos & whitespace
2013-07-13 20:23:13 +02:00
David Grudl
1382a1021f
all file names correspond with class name
2013-06-22 18:29:35 +02:00
jasir
849b9b66fa
Firebird driver: getRowCount throws NotSupportedException
2013-06-11 17:56:52 +02:00
David Grudl
cbdcc3f832
Merge pull request #85 from foglcz/bug-84
...
Throw entire callstack for interbase-based databases.
2013-04-11 02:39:31 -07:00
Pavel Ptacek
9b4d58878c
Throw entire callstack for interbase-based databases. The errors given by firebird are multiline, exceptions get thrown from inside the logic. (.*) matches everything up until first line by default - this mitigates the problem and mathes the entire rest of the string (= including multilines)
2013-04-11 04:51:09 +02:00
Miloslav Hůla
0ebe7ad84f
DibiMsSql2005Driver: fixed identifier escaping
...
Annoted link to MS SQL doc does not talk about open bracket '[' escaping, only closing bracket ']'.
dibi::query('CREATE TABLE %n (id INT)', 'abc[]def');
- old: creates table 'abc[[]def'
- new: creates table 'abc[]def'
2013-04-10 12:08:11 +02:00
Miloslav Hůla
4ea885f2b9
DibiPdoDriver: added identifier escaping for sqlsrv
2013-04-10 12:08:11 +02:00
Miloslav Hůla
3634673ffa
DibiPdoDriver: applyLimit() for sqlsrv driver
...
Added table alias has been tested with MS SQL Server 2012 directly and over ODBC.
2013-04-10 12:08:10 +02:00
Miloslav Hůla
8e5898a11b
DibiMsSql2005Driver: default charset set to UTF-8
...
If charset is not specified in config, NULL is passed as connection option and 'Invalid value type for option CharacterSet was specified. String type was expected.' is thrown.
2013-04-10 12:07:27 +02:00
David Grudl
d09fc7d837
MySQLI: mysqli_affected_rows() returns -1 on error [ Closes #80 ]
2013-04-03 13:57:48 +02:00
Filip Procházka
cbca529ff8
PdoDriver: fix notice undefined index native_type
2013-03-01 17:31:21 +01:00
Daniel Kouba
9001afe7ca
MSSQL2005 driver: autoincrement determination fixed
2012-12-30 02:56:21 +01:00
Daniel Kouba
16b254fce1
MSSQL2005 applyLimit fixed
...
Conflicts:
dibi/drivers/mssql2005.php
dibi/drivers/mssql2005.reflector.php
2012-12-16 23:42:09 +01:00
Daniel Kouba
188acf1f76
Column size is string or NULL
...
Issue #74
2012-12-11 15:09:21 +01:00
David Grudl
d09e490f1b
reflectors: table names are correctly escaped
2012-12-04 14:35:53 +01:00
David Grudl
b4de8daed3
fixed invalid escaping sequences in double quoted strings, used \z instead of $
2012-12-04 14:15:31 +01:00
Daniel Kouba
7696fc36e1
Added MSSQL 2005 Reflector
2012-12-04 14:15:26 +01:00