summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
AgeCommit message (Collapse)AuthorFilesLines
2015-07-04fix SQlite3 list_fieldsftwbzhao1-1/+1
2015-07-02Apply PR #3940 to sqlite3 driver and fix a wrong var nameAndrey Andreev1-1/+2
2015-07-02sqlite < 3.3 unsuported `_drop_table_if`ftwbzhao1-0/+1
2015-05-13Fixed bug - using field_data() on Oracle databasesLeandro Mangini Antunes1-1/+1
When you're using oracle databases and want to retrieve column information through the function field_data($table) you get the following notice: - Notice: Undefined property: stdClass::$COLUMN_DEFAULT in system/database/drivers/oci8/oci8_driver.php on line 576; This happens because the oci8 driver tries to access a property that does not exist on query used to get field information. Checking the code we see a small validation to set default value, but the variable $default is not used. So we fix this bug by simply changing: $retval[$i]->default = $query[$i]->COLUMN_DEFAULT; to $retval[$i]->default = $default; Bug fixed. No more notices and the properly value is set.
2015-04-29Add list_fields() support for SQLite3Andrey Andreev2-16/+44
2015-04-14Fix #3773Andrey Andreev1-0/+24
2015-02-19Remove 'autoinit' DB settingAndrey Andreev7-28/+0
It doesn't make sense to do a load->database() call but not connect to the database. IIRC there was more stuff in CI_DB_driver::initialize() at some point, so that was probably the reason why the setting existed in the first place. However, now it only results in users making invalid bug reports because they don't understand the feature ... Examples during just the past 2 weeks: #3571 #3601 #3607
2015-02-17Finishing PR #3596 <!DOCTYPE html>Ivan Tcholakov1-1/+2
2015-02-15add <!DOCTYPE html>Tjoosten13-13/+26
2015-02-08Deleted spacesGwenael Gallon2-2/+2
2015-02-08Revert "Remove unnecessary return"Gwenael Gallon1-1/+1
This reverts commit 96901ff3849c19351c7382689e6a970629586aae.
2015-02-08Revert "Remove unnecessary return"Gwenael Gallon6-6/+6
This reverts commit 3053ded760a9657bdc7b935beb61d2f632859928.
2015-02-08Revert "Remove unnecessary return"Gwenael Gallon8-8/+8
This reverts commit 843d2506e1a1eab17b871bc38b204d27047c9ff7.
2015-02-07Remove unnecessary returnGwenael Gallon8-8/+8
2015-02-07Remove unnecessary returnGwenael Gallon6-6/+6
2015-02-07Remove unnecessary returnGwenael Gallon1-1/+1
2015-02-07Revert indentationGwenael Gallon2-8/+8
2015-02-07Fix unreachable codeGwenael Gallon2-10/+10
2015-02-04Fix typos in func namesGabriel Potkány1-1/+1
2015-02-03Fix a wrong var name in class CI_DB_pdo_4d_forge::_attr_typeGwenael Gallon1-1/+1
2015-01-28fix typo in commentsClaudio Galdiolo1-1/+1
2015-01-26... and neither does MYSQLI_OPT_RECONNECTAndrey Andreev1-1/+0
2015-01-26Apparently MYSQLI_OPT_READ_TIMEOUT doesn't work on PHPAndrey Andreev1-1/+0
2015-01-26Close #3509Andrey Andreev1-0/+4
Not really a bug, but ...
2015-01-23Corrected loop with the $c variableGwenael G1-1/+1
2015-01-23Fix error extends class nameGwenael G1-1/+1
2015-01-23This $comment_clause local variable is declared but never used.Gwenael G1-2/+0
2015-01-21Remove closing blocks at end of PHP filesvlakoff72-216/+0
2015-01-20Remove error suppression from mysql_*connect()Andrey Andreev1-2/+2
The suppression was kept so far because mysql_connect(), mysql_pconnect() emit E_DEPRECATION messages on PHP 5.5+. Well, we already default to 'mysqli' and there's no reason to use specifically 'mysql' on PHP 5.5, so we might as well let the deprecation notices appear and encourage users to switch drivers.
2015-01-12Change CI_DB_driver::field_data() signatureAndrey Andreev20-110/+22
The parameter is mandatory, it doesn't make sense to have a default empty string value only to check for it.
2015-01-09Bulk (mostly documentation) updateAndrey Andreev72-216/+216
- Remove PHP version from license notices - Bump year number in copyright notices - Recommend PHP 5.4 or newer to be used - Tell Travis-CI to test on PHP 5.3.0 instead of the latest 5.3 version Related: #3450
2014-12-17Add support for configuring socket pipe connections in 'mysqli'Andrey Andreev1-5/+17
Supersedes PR #3415
2014-11-18Force ORDER BY usage with OFFSET-FETCH on SQL ServerAndrey Andreev2-0/+6
Close #3128 Close #3332 Close #3334 Close #3335
2014-11-13Fix an issue with 'postgre' persistent connectionsAndrey Andreev1-14/+13
Basically, they were never persistent.
2014-11-03Polish changes following #3305Andrey Andreev7-15/+42
Also add support for field comments in PostgreSQL & Oracle ... only via alter_table() for now :/
2014-11-03Remove comment field definition from all other forge classesZachary Flower20-140/+0
2014-11-03Move MySQL comments to MySQL forge classes onlyZachary Flower3-3/+9
2014-11-03Move comment field after unique field in db forgeZachary Flower3-3/+3
2014-11-03Disable database COMMENT field by default in all other DB Forge driversZachary Flower20-0/+140
Signed-off-by: Zachary Flower <zach@ninjaninja.net>
2014-11-03Add support for the COMMENT field in DBForge and MySQL Forge classes (pdo, ↵Zachary Flower3-0/+3
mysql, and mysqli) Signed-off-by: Zachary Flower <zach@ninjaninja.net>
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev72-1021/+1830
2014-08-26ibase_driver add table/column aliaseshArpanet1-3/+3
to satisfy DB_driver expectations
2014-08-21ibase_driver returning whitespace in table/column nameshArpanet1-3/+3
Currently all Table and Field names are returned padded with whitespace up to string(124).
2014-07-05Missing looping index added. Without index empty rows returned for csv ↵Dionysis Arvanitis1-1/+1
column headers.
2014-07-01Fix #3124Andrey Andreev1-2/+2
2014-06-19Fix #3112Andrey Andreev4-15/+4
2014-05-09Remove (most of) error suppression from database drivers (issue #3036)Andrey Andreev17-56/+61
2014-05-07Remove error-masking '@' in mysqli_driver (See: ↵mdunisch1-2/+2
https://github.com/EllisLab/CodeIgniter/issues/3036)
2014-04-25Minor fixesvlakoff1-1/+1
2014-03-24[ci skip] Spacing adjustmentsAndrey Andreev1-10/+10