summaryrefslogtreecommitdiffstats
path: root/system/database
AgeCommit message (Collapse)AuthorFilesLines
2013-09-10Add support for UPDATE ... RETURNING statements in PostgreSQLAndrey Andreev2-2/+2
An improved version of PR #2629. Also removes REPLACE from the regular expression, as it is not supported by PostgreSQL.
2013-09-08Merge pull request #2627 from vlakoff/develop-3Andrey Andreev3-3/+3
Adjust a few phpdoc in query builder code
2013-09-08Adjust a few phpdoc in query builder codevlakoff3-3/+3
2013-09-08Code cleanup in db->order_by()vlakoff1-1/+1
2013-08-06Various typos and tabs adjustmentsvlakoff2-2/+2
2013-08-06Fix #2585Andrey Andreev1-1/+1
2013-08-06Fix #2501 & another -related bugAndrey Andreev2-1/+4
2013-07-29Fix #2568Andrey Andreev1-2/+2
2013-07-18More verbose error messages for incorrect/missing database groups (based on ↵Andrey Andreev1-2/+6
PR #2040)
2013-07-17Fix #2490 (an improved version of PR #2534)Andrey Andreev2-0/+26
2013-07-17[ci skip] Remove some empty linesAndrey Andreev1-1/+1
2013-07-17Merge pull request #2447 from rlerdorf/developAndrey Andreev1-2/+2
A few minor fixes and cleanups
2013-07-17Cherry-picking some changes from PR #2425:Andrey Andreev2-7/+2
- Session events logging (debug) - Bug fix for OCI8 method stored_procedure()
2013-05-18It looks like this should be $alter_type hereRasmus Lerdorf1-2/+2
Signed-off-by: Rasmus Lerdorf <rasmus@php.net>
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-21Merge pull request #2350 from ragboyjr/developAndrey Andreev1-7/+2
Making a performance modification to DB_driver list_fields()
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-03-15Fix MSSQL ALTER TABLE ADD statementAndrey Andreev1-1/+5
An improved version of PR #2329
2013-03-12Add a (default) CI_DB_query_builder::_update_batch() methodAndrey Andreev5-164/+41
An improved version of PR #2324, which only targets ODBC.
2013-03-04Merge branch 'develop' of github.com:EllisLab/CodeIgniter into ↵Daniel Hunsaker2-8/+5
feature/exit-status
2013-03-04Fix #2298Andrey Andreev1-6/+3
2013-03-01Optimize changes from PR #2290Andrey Andreev1-4/+2
2013-02-28added spaces after the parameter separatorsMichelle Jones1-2/+2
2013-02-27Remove trailing delimiters from csv_from_resultMichelle Jones1-1/+3
When using the csv_from_result function, the returned string includes an extra delimiter at the end of every line, usually a comma unless another delimiter is specified. A simple addition of a couple of lines to remove the extra delimiter from the column names and the data rows is included. (Lines 241 and 251)
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 Hunsaker7-13/+10
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 Andreev2-4/+4
Note: The Driver libary tests seem to depend on that, so one occurence in CI_Loader is left until we resolve that.
2013-02-21Manually apply PR #2234Andrey Andreev1-0/+1
2013-02-20Remove CI_DB_pdo_driver::Andrey Andreev1-7/+0
Improving on PR #2265, the property is inherited with the same value and doesn't need to be set.
2013-02-19DB_driver's trans_complete exception fixDionysis Arvanitis1-1/+1
2013-02-19Set transaction enabled flag default to TRUEDionysis Arvanitis1-1/+1
2013-01-29Fix list_fields seek bugChris Buckley3-0/+3
On the first list_fields call, the field pointer is moved to the end of the list of fields. This change ensures that the pointer is positioned at the start of the field list before grabbing the names. Signed-off-by: Chris Buckley <chris@cmbuckley.co.uk>
2013-01-28Fix issue #2179Andrey Andreev1-1/+1
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev1-1/+1
As suggested in issue #2134 & PR #2149
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 Andreev3-15/+27
so that it's only called by drivers that need it ('mysql', 'mssql'). As proposed in issue #2187.
2013-01-15A few adjustments to previous commitvlakoff1-1/+1
2013-01-14Replace is_null() with === / !== NULLvlakoff3-11/+11
Exact same behavior, but faster. I also think it's more readable.
2013-01-10Unify escape_str() array input and LIKE logicAndrey Andreev13-345/+87
Added protected method _escape_str() to deal with quote escaping.
2013-01-10Fix SQLSRV escape_str()Andrey Andreev1-1/+23
2013-01-10Apply improvement proposed in #2142Andrey Andreev2-2/+2