Commit Graph

101 Commits

Author SHA1 Message Date
Petr Škoda fe5a985c0e MDL-35129 implement new export_table_recordset()
This is necessary because MySQL get_recordset_sql() stores the data in memory, unfortunately the alternative resultset iteration blocks concurrent access - that is why we need new method for export.
2012-09-15 12:03:24 +02:00
Petr Škoda 9134f9aa9c MDL-34441 prevent mysqli::close() notice after failed mysql driver connect 2012-07-22 20:57:04 +02:00
Petr Škoda 41e8883ea8 MDL-34271 use the same collation when adding new tables or columns 2012-07-12 14:41:28 +02:00
Petr Škoda 7ec63b27d0 MDL-34271 cleanup mysql engine hack before adding similar collation hack 2012-07-12 14:41:27 +02:00
Petr Skoda 00902cd974 MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer
DML layer is not supposed to use $CFG,
it is better to rely on __DIR__ in self-contained libs…
2012-06-17 22:56:28 +02:00
Tomasz Muras 04bfa67c41 MDL-32930 Add escaping for '_' character 2012-05-11 08:56:01 +02:00
Tomasz Muras c92e462b04 MDL-32930 Improve the performance of get_tables 2012-05-10 23:35:18 +02:00
Petr Skoda 4bf855771f MDL-32365 fix hardcoded auto-increment on id columns 2012-04-10 15:22:16 +02:00
Petr Skoda 3b4f7338a7 MDL-32365 fix invalid checking for returned id when custom sequence used 2012-04-10 15:22:15 +02:00
Petr Skoda a3d5830a0a MDL-32149 PHPUnit test support - part 2
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Dan Poltawski d68c62fe12 Merge branch 'w12_MDL-29515_m23_deprdb' of git://github.com/skodak/moodle 2012-03-21 09:25:47 +08:00
Petr Skoda de640a2d3f MDL-29515 remove deprecated $DB->sql_ilike() and fix debug messages 2012-03-17 19:20:39 +01:00
Petr Skoda e618cdf3f6 MDL-29894 forbid objects in DML parameters
Objects with __toString we never fully supported as parameters in DML layer, this finally brings consistent behaviour.
2012-03-17 18:44:12 +01:00
Petr Skoda bc09aa158b MDL-31899 use information_schema for normal db tables in get_columns()
This change is based on patch by Charles Fulton.
2012-03-10 21:41:44 +01:00
Petr Skoda 05aae0a571 MDL-29514 drop support for enum data types 2012-03-10 21:36:48 +01:00
Petr Skoda a681b6c0a9 MDL-31689 fix moodle_database:execute() description 2012-03-07 12:36:40 +01:00
Eloy Lafuente (stronk7) 2ed7cc2730 Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle 2012-03-06 16:06:53 +01:00
Petr Skoda 7e522ccbc8 MDL-27982 remove unsigned support from all UIs and APIs, keep only public API for BC 2012-03-06 12:02:11 +01:00
Petr Skoda f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Aparup Banerjee dafa20e85c MDL-30972 Documentation : improved @see as well as added appropriate uses of inline @link. 2012-02-16 10:29:45 +08:00
Aparup Banerjee a0eb2e97f9 MDL-30972 Documentation : Renamed DB engine drivers to "@package core" but moodle_*.php are "@subpackage dml_driver", all other dml/*.php are "@subpackage dml". 2012-02-09 10:01:42 +08:00
Aparup Banerjee 6df260107c MDL-30972 Documentation : clarified phpdocs for main public APIs in DML layer and touched up on some drivers 2012-02-09 10:01:42 +08:00
Eloy Lafuente (stronk7) 870896eca1 MDL-30147 dml - mysql and no params now behaving "standard" 2011-11-19 09:27:10 +01:00
Petr Skoda 2b0e3941e9 MDL-30026 improve session lock acquire timeouts and other minor cleanup
This is partially based on original patch by Tony Levi.
2011-11-06 17:52:15 +01:00
Eloy Lafuente (stronk7) 61e55061a6 MDL-29566 mysql - length / decimal specs in float columns are optional 2011-09-29 00:24:54 +02:00
Petr Skoda 148c65bfc8 MDL-29295 do not use strtok in dml and ddl layers
This prevents clobbering of internal pointer when code calling DML
uses strtok too. Unit test added to prevent future uses.
2011-09-14 00:19:55 +02:00
Eloy Lafuente (stronk7) d466e23c38 MDL-28032 database - retrofit signed info for decimal/float (improves diffs detection) 2011-06-26 12:54:16 +02:00
Eloy Lafuente (stronk7) 7aa9e45f56 MDL-27325 mysql: Avoid some implicit casting from float to varchar/text 2011-05-06 16:07:17 +02:00
Petr Skoda 9e9543e54b MDL-26307 fix dbport and dbsocket support when creating mysql database 2011-02-12 20:08:49 +01:00
Petr Skoda 8c4b142cb2 MDL-26290 add experimental windows mysqli named pipe support 2011-02-06 22:11:28 +01:00
Petr Skoda 77f9f23b0f MDL-26290 make sure ini_get('mysqli.default_port') returns number 2011-02-06 21:21:23 +01:00
Petr Skoda 79ac5a8cf2 MDL-25910 add support for custom mysql socket location 2011-01-14 10:20:04 +01:00
Aparup Banerjee bac1401534 lib MDL-25532 added dbport handling for during db creation 2010-12-09 06:18:20 +00:00
Aparup Banerjee feaddca9e9 lib MDL-25532 added dbport option to mysqli driver 2010-12-07 07:30:35 +00:00
Eloy Lafuente 9882b2c824 MDL-25276 dml - fix/implement sql_cast2int/real() across the 5 drivers. Tests passing. 2010-11-18 01:27:49 +00:00
Petr Skoda cd4f18595a MDL-23610 finally fixed the broken utf8 detection in mysqli driver
this was actually causing tons of false reports because people are often creating the database without the encoding parameter, especially when testing upgrades
2010-11-17 01:58:38 +00:00
Sam Hemelryk 215d7cb84e NOBUG: Improved docs for concat functions within mysql_native_moodle_database.php 2010-11-11 01:57:35 +00:00
Petr Skoda 70ff13bed7 MDLSITE-1007 ugly workaround for preventing of sloppy string to int casting in mysql 2010-10-04 08:47:58 +00:00
Petr Skoda ac6f1a82f9 MDL-24321 switching to stdClass 2010-09-21 07:57:42 +00:00
Petr Skoda 16114b9db8 MDL-24080 new $notlike parameter added to our new sql_like(), hopefully nobody started using the $escaped param yet; unittests included 2010-09-04 14:39:01 +00:00
Petr Skoda 915ee3f9df MDL-23925 completely reverting binary comparison hack, we have to instruct admins to setup case+accent sensitive collation as default instead 2010-08-25 11:18:37 +00:00
Petr Skoda 9a1e8c5e52 MDL-23925 reverting changes, we need to fix uniqueness and collation issues first 2010-08-25 09:35:18 +00:00
Petr Skoda 6055f89d30 MDL-23925, MDL-23888 new sql_ilike() and sql_binary_equal() - this should finally allow us to solve many collation issues consistently for all supported databases; please note this changes some behaviour for non-english languages when mysql used; expect more commits that actually make use of these new features 2010-08-24 21:50:53 +00:00
Petr Skoda 9331d879eb MDL-14679 more return types added 2010-08-22 19:06:06 +00:00
Petr Skoda 3503dcad31 MDL-14679 fixing more incorrect return types 2010-08-22 19:00:28 +00:00
Petr Skoda 5212b07f20 MDL-14679 fixing incorrect return type of recordset methods 2010-08-22 18:55:29 +00:00
Petr Skoda 4a6c2ab88e MDL-14679 fixing obsolete driver names in comments 2010-08-22 18:51:45 +00:00
Petr Skoda ed22700db5 MDL-23682 improved overriding of MyISAM default engine with something that supports ACID 2010-08-19 07:09:14 +00:00
Petr Skoda d35ece6cce MDL-23682 new MySQL engine diagnostics + InnoDB is now used instead of MyISAM in new installs if available + improved mysql transaction support 2010-08-18 16:47:00 +00:00
Petr Skoda d8fa8e406e MDL-23568 parameters of DML function insert_record are not modified any more < improved coding style, now using cast to array consistently 2010-07-31 20:51:22 +00:00