summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
AgeCommit message (Collapse)AuthorFilesLines
2015-01-29fix typo in commentsClaudio Galdiolo1-1/+1
2015-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-1/+1
'Class Loaded' type of messages flood log files when log_threshold is set to 2 (debug). They're now logged as 'info' level. This is manually applying PR #1528, which was created to do the same thing, but became outdated.
2015-01-09Bulk (mostly documentation) updateAndrey Andreev1-3/+3
- 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
2015-01-05Fix #3460Andrey Andreev1-1/+1
2015-01-05Polish changes following PR #3416Andrey Andreev1-22/+26
2014-12-16User Guide - DB Driver ReferenceJames L Parry1-5/+5
First stab at DB driver reference. Methods are listed in order encountered in the source file. Parameter or return types in DB_driver updated as needed, and reflected here. TOC entry added to bottom of database index page. Signed-off-by:James L Parry <jim_parry@bcit.ca>
2014-12-02Regressions ... #3380 #3194 ab9217e316a79bc8fab2840c8f5bd2b9bc7a4dc0Andrey Andreev1-2/+3
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
2014-10-20Escape the array elements separately and join them in compile_binds()clawoo1-2/+7
2014-10-18Escape arrays sent as binding values for database queries.clawoo1-1/+6
2014-09-17Fix #3238Andrey Andreev1-3/+2
Close #3239
2014-04-30Added `_trans_failure` property to fix PHP Warning.Ahmedul Haque Abid1-0/+9
2014-04-09Removed BOMEtki1-1/+1
2014-04-09MicrofixEtki1-7/+1
cleaned `return true; return true;` construction
2014-03-13Partially revert PR #2190Andrey Andreev1-1/+1
The core shouldn't depend on constants that are not defined by itself
2014-02-27Call db_connect(TRUE) instead of db_pconnect() + some style changesAndrey Andreev1-18/+22
2014-02-26More removal of error suppression usageAndrey Andreev1-7/+4
2014-02-25Make db_pconnect an alias for db_connect(TRUE) and reduce code repetitionAndrey Andreev1-0/+12
2014-02-112013 > 2014darwinel1-1/+1
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-01-07A tiny regexp improvement for CI_DB_driver::is_write_type()Andrey Andreev1-1/+1
2013-12-20Polishing changes from #PR #2781Andrey Andreev1-3/+3
Looks like an unnecessary commit was made by the author just as I was clicking the Merge button. :)
2013-12-19so we need \sNOT EXISTSTufan Barış YILDIRIM1-1/+1
2013-12-19changed EXISTS / NOT EXISTS patternTufan Barış YILDIRIM1-3/+3
@narfbg "It has parenthesis, so use the IN / NOT IN pattern as a base."
2013-12-19EXISTS / NOT EXISTS clause support for DB_driverTufan Barış YILDIRIM1-3/+3
2013-12-19EXISTS / NOT EXISTS clause support for DB_driverTufan Barış YILDIRIM1-2/+4
2013-12-19EXISTS / NOT EXISTS clause support for DB_query_builder.Tufan Barış YILDIRIM1-2/+4
2013-12-14DB call_function() bug : funny typo -or- smart autocomplete?Kakysha1-1/+1
2013-10-21Fix #2691Andrey Andreev1-1/+8
2013-10-17Replace the last rand() with mt_rand()vlakoff1-1/+1
Better entropy, faster. Also fixed a few "it's" typos.
2013-08-06Fix #2501 & another -related bugAndrey Andreev1-1/+3
2013-07-17Cherry-picking some changes from PR #2425:Andrey Andreev1-1/+0
- Session events logging (debug) - Bug fix for OCI8 method stored_procedure()
2013-05-12Do not trigger a possible custom autoloader, as it is irrelevant herevlakoff1-1/+1
These were the last two calls of class_exists() without the $autoloader = FALSE argument.
2013-04-04Merge pull request #2343 from QOX/developAndrey Andreev1-1/+1
Fixed problem for transaction test mode.
2013-04-03Fixed for styleguide.Katsumi Honda1-1/+1
2013-04-03fixed for styleguide.Katsumi Honda1-2/+2
|| to OR remove the empty line at EOF
2013-03-29Merge pull request #2365 from vlakoff/developAndrey Andreev1-1/+1
Documentation: fix some outdated paths
2013-03-29Documentation: fix some outdated pathsvlakoff1-1/+1
2013-03-29Fix #2353Andrey Andreev1-1/+4
2013-03-21Making a performance modification to DB_driver list_fields()RJ garcia1-7/+2
Signed-off-by: RJ garcia <rj@bighead.net>
2013-03-19Fixed problem for transaction test mode.Katsumi Honda1-2/+2
trans_complete function is committed in test mode. Because any database drivers are set _trans_failure in test_mode, And trans_complete function is not evaluate _trans_failure.
2013-02-23Updated exit codes as constant valuesDaniel Hunsaker1-1/+1
Re-allocated exit status codes according to three references, which follow: BSD sysexits.h:http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits GNU recomendations:http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html Bash scripting:http://tldp.org/LDP/abs/html/exitcodes.html The GNU recommendations stem from and expand upon the standard C/C++ library (stdlibc) definitions, while also suggesting some best-practice conventions which happen to prevent exit status code collisions with bash, and probably other shells. The re-allocated codes are now mapped to constant values, set in *application/config/constants.php*, and used throughout the CodeIgniter core. They would additionally be used in *index.php*, but the constants file hasn't been loaded at that point, so the integer values are used instead, and a comment follows each such use with amplifying information on why that particular value was selected. Finally, the errors documentation has been updated accordingly. Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-02-22Merge branch 'develop' of github.com:EllisLab/CodeIgniter into ↵Daniel Hunsaker1-2/+2
feature/exit-status
2013-02-21Merge pull request #2266 from dionysiosarvanitis/fix/trans_completeAndrey Andreev1-1/+1
DB_driver's trans_complete exception fix
2013-02-21DB_result tests seem to also depend on autoloading via the class_exists() ↵Andrey Andreev1-1/+1
checks ...
2013-02-21Disable autoloader call from class_exists() occurences to improve performanceAndrey Andreev1-2/+2
Note: The Driver libary tests seem to depend on that, so one occurence in CI_Loader is left until we resolve that.
2013-02-19DB_driver's trans_complete exception fixDionysis Arvanitis1-1/+1
2013-01-25Updated all cases of exit() to return a valid codeDaniel Hunsaker1-1/+1
Specific codes are as follows, but can easily be changed if a different order/breakdown makes more sense: - 0: Success; everything executed as planned - 1: Configuration Error; something is wrong with/in the configuration file(s) - 2: Class Not Found; what it says - 3: Driver Method Unsupported; the method you're trying to use on a Driver doesn't exist - 4: File Not Found; 404 error - 5: Database Error; something is broken in the database somewhere - 6: Invalid Input; the user attempted to submit a request with invlaid characters in 1+ key names 7 through 26 are reserved for future use - 27: Generic Error; generated by show_error() when the status code is >= 100 28 through 127 are errors generated by user applications, normally by using show_error() with a status code below 100 128 through 254 should not be used by applications, as they are reserved by system-level functions - 255: PHP Fatal Error; automatically generated by PHP for fatal errors, and therefore not allowed for our use Status codes below 100 are shifted up by 28 to place them in the user error range. It may make more sense to have these codes left alone and instead shift the CI errors into the 101 through 127 space, but that's not what I opted for here. It would probably also be a good idea to replace the hard-coded numbers with constants or some such, but I was in a bit of a hurry when I made these changes, so I didn't look around for the best place to do this. With proper guidance, I could easily amend this commit with another that uses such constant values. Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-01-24Move db_select() call from CI_DB_driver::initialize() to db_connect()Andrey Andreev1-14/+0
so that it's only called by drivers that need it ('mysql', 'mssql'). As proposed in issue #2187.
2013-01-14Replace is_null() with === / !== NULLvlakoff1-1/+1
Exact same behavior, but faster. I also think it's more readable.