summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
AgeCommit message (Collapse)AuthorFilesLines
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.
2013-01-10Unify escape_str() array input and LIKE logicAndrey Andreev1-1/+48
Added protected method _escape_str() to deal with quote escaping.
2013-01-01[ci skip] Happy new yearAndrey Andreev1-1/+1
2012-11-20Fix #1996Andrey Andreev1-10/+13
2012-11-20Fix issue #2015Andrey Andreev1-1/+1
2012-11-20Fix an E_NOTICEAndrey Andreev1-1/+1
2012-11-13Fix some DB_cache-related issuesAndrey Andreev1-1/+1
http://codeigniter.com/forums/viewthread/229610/
2012-11-13Add seed values support for Query Builder order_byAndrey Andreev1-2/+2
(feature request #1987)
2012-11-06Fix an escape_identifiers() bugAndrey Andreev1-1/+1
2012-11-02[ci skip] DocBlocks for DB drivers' driver classesAndrey Andreev1-0/+14
Partially fixes issue #1295.
2012-11-02DocBlocks for base DB classesAndrey Andreev1-12/+251
Partially fixes issue #1295.
2012-11-01Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)Andrey Andreev1-1/+2
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
2012-11-01Fix an update_string() bugAndrey Andreev1-27/+3
2012-10-25Add missing delimiter in preg_quote() occurences (fix #1929)Andrey Andreev1-5/+5
2012-10-24[ci skip] style and phpdoc-related changes (rel #1295)Andrey Andreev1-4/+11
2012-10-12Merge branch 'develop' of github.com:EllisLab/CodeIgniter into ↵Andrey Andreev1-1/+1
feature/db_qb_aliasing
2012-10-12Set MySQL client compression to FALSE by default (problems reported with ↵Andrey Andreev1-1/+1
it), fix some typos, add encrypted database connections support and fix SQLSRV CharacterSet setting
2012-10-12Fix _get_operator() for 'LIKE expr ESCAPE'Andrey Andreev1-2/+1
2012-10-12Merge changes from developAndrey Andreev1-3/+14
2012-10-09Fix issue #1862Andrey Andreev1-1/+1
2012-10-05Fix #1745Andrey Andreev1-1/+1
2012-10-05Fix issue #1692Andrey Andreev1-2/+8
2012-10-04Fix issue #1789Andrey Andreev1-0/+4
Signed-off-by: Andrey Andreev <narf@bofh.bg>
2012-09-12Minor adjustmentsAndrey Andreev1-1/+1
2012-09-05Check for "Loader" in $call['class'] instead of $call['file']Jonathan Bonnefoy1-1/+1
2012-09-05Database display error supporting "Loader.php" and "MY_Loader.php"Jonathan Bonnefoy1-1/+1
2012-08-20compression testMichiel Vugteveen1-0/+1
2012-07-19Fix CI_DB_driver::_get_operator()Andrey Andreev1-20/+19
2012-07-19Add back a removed paramter descriptionAndrey Andreev1-0/+1
2012-07-19Implement _compile_order_by()Andrey Andreev1-2/+2
2012-07-19Remove _limit()'s extra parameters and qb_limit, qb_offset unneeded ↵Andrey Andreev1-1/+1
typecasts + add _compile_group_by() method
2012-07-18Remove dependancies on qb_like and remove unneeded parameters from ↵Andrey Andreev1-27/+26
_delete(), _like(), _update(), _update_batch()
2012-07-17Fix WHERE escaping/prefixingAndrey Andreev1-2/+15