summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
AgeCommit message (Collapse)AuthorFilesLines
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
2012-07-13escape_identifiers() to not escape string literals inside double quotes as wellAndrey Andreev1-1/+1
2012-07-08Merge branch 'develop' of github.com:EllisLab/CodeIgniter into ↵Andrey Andreev1-3/+3
feature/db_subdrivers
2012-07-06Fix a few join() bugsAndrey Andreev1-3/+3
2012-07-05Merge upstream branchAndrey Andreev1-3/+67
2012-07-05Add a default _count_string propertyAndrey Andreev1-0/+7
2012-07-05Move _insert() and _update() defaults from Query Builder to DB_driver so ↵Andrey Andreev1-3/+60
that they're available for use by insert_string() and update_string() at all times
2012-07-02Merge branch 'develop' of github.com:EllisLab/CodeIgniter into ↵Andrey Andreev1-3/+12
feature/db_subdrivers
2012-07-02Fix field escaping with bracketsAndrey Andreev1-3/+7
2012-06-28Fix issue #1546Andrey Andreev1-0/+5
2012-06-28Merge branch 'develop' of github.com:EllisLab/CodeIgniter into ↵Andrey Andreev1-11/+11
feature/db_subdrivers
2012-06-27Utilize query()'s return_object parameterAndrey Andreev1-11/+11
2012-06-23Rename pdodriver property to subdriver and make it available to all driversAndrey Andreev1-0/+1
2012-06-20Small adjustment due to 079fbfcde095230f304e889217f897031a948f61Andrey Andreev1-1/+1
2012-06-17Improve escaping, support for table names with spaces and fix where() for ↵Andrey Andreev1-30/+26
strings with no spaces around operators
2012-06-15more loggingMichiel Vugteveen1-1/+1