Dan Poltawski
f5d7fe4c9e
MDL-34159 - add comment lost from previous commit
2012-07-10 12:59:06 +08:00
Dan Poltawski
4afbd0c834
Merge branch 'w28_MDL-34159_m24_wherelist' of git://github.com/skodak/moodle
2012-07-10 12:52:14 +08:00
Petr Skoda
63224dee44
MDL-33568 improve DB->count_records*()
...
Now always returns integer and invalid queries are detected.
2012-07-06 08:09:11 +02:00
Petr Škoda
7f22fb4dd9
MDL-34159 improve where_clause_list performance
2012-07-06 07:57:08 +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
Dan Poltawski
85b0540605
Merge branch 'wip-MDL-32395-m23' of git://github.com/samhemelryk/moodle
2012-04-16 10:32:09 +08:00
Sam Hemelryk
9315a5fb59
MDL-32395 dml: Minor phpdoc fixes
2012-04-11 09:47:50 +12:00
Petr Skoda
7620602cc2
MDL-32323 improve transaction handling in PHPUnit test cases
2012-04-10 15:27:10 +02:00
Dan Poltawski
2511b0742a
Merge branch 'MDL-32028' of git://github.com/nebgor/moodle
2012-03-27 14:46:52 +08: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
Aparup Banerjee
78e05ba53e
MDL-32028 Documentation : removed legacy 1.x documentation
2012-03-15 15:19:32 +08:00
Petr Skoda
a681b6c0a9
MDL-31689 fix moodle_database:execute() description
2012-03-07 12:36:40 +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
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
096880eb7c
MDL-30972 More phpdocs changes after Jenkins review.
2012-02-09 10:07:48 +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
c04e80e328
MDL-30147 detect missing table when processing query conditions
2011-11-19 09:16:51 +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
Aparup Banerjee
e2e1cf53db
Merge branch 'MDL-29198' of git://github.com/stronk7/moodle
2011-09-05 12:10:32 +08:00
Tim Hunt
8de7858fb9
MDL-28080 coding_exception for over-long placeholder names.
2011-09-01 11:47:40 +02:00
Eloy Lafuente (stronk7)
4b5c84ae30
MDL-29198 DB - make delete_records transactional safe when needed
2011-09-01 11:05:21 +02:00
Petr Skoda
bce595034c
verify where_clause() only in debug mode
2011-08-05 21:33:16 +02:00
Andrew Robert Nicols
b7eceef75f
MDL-28193 Add $external arg to get_driver_instance
...
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
2011-07-05 12:22:41 +01:00
Tim Hunt
cfcf9bb4e3
MDL-27897 moodle_database::get_in_or_equal must not use a static variable.
...
It makes unit testing impossible. Switch to a field.
2011-06-17 11:26:51 +01:00
Petr Skoda
906c957b63
MDL-27148 use static counter instead of incrementing parameter name
2011-04-14 14:50:35 +02:00
Eloy Lafuente (stronk7)
c7ce62f9c8
MDL-26542 get_in_or_equal - adding $onemptyitems + tests
2011-03-30 18:22:53 +02:00
Petr Skoda
200b4556d7
MDL-26842 make sure query parameter names are not reserved words in oracle driver
2011-03-16 15:20:32 +01:00
Eloy Lafuente (stronk7)
5a4a7b425b
MDL-25708 recordsets - fix upgradelib and dml stuff
2011-01-25 19:59:00 +01:00
Aparup Banerjee
011bfd2a54
database MDL-24863
...
- added restricting text conditions to where_clause , it throws a dml_exception when detected.
- also added to where_clause throwing dml_exception for field that doesn't exist in table.
- added unit tests for text condition restricting.
- added 2 unit tests for set_field_select() testing 'auto-casting params to int problem' fix
2010-11-18 06:00:51 +00:00
Petr Skoda
ac6f1a82f9
MDL-24321 switching to stdClass
2010-09-21 07:57:42 +00:00
Petr Skoda
b968cf3501
MDL-19057 simplified fake conditions, no need to bind params here
2010-09-14 19:19:30 +00:00
Petr Skoda
d868e87934
MDL-19057 fixed more phpdocs
2010-09-06 14:11:38 +00:00
Petr Skoda
ded99d1ab2
MDL-19057 fixed phpdocs
2010-09-06 14:10:52 +00:00
Petr Skoda
89e87570b6
MDL-19057 fixed docs
2010-09-06 12:50:17 +00:00
Petr Skoda
f358b06a1e
MDL-19057 fixed get instance docs
2010-09-06 12:47:57 +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
2f8eea3415
MDL-24079 finally the sql_ilike() is deprecated
2010-09-04 14:23:50 +00:00
Petr Skoda
0e6e90516a
MDL-24028 cast all bools in DML params to integers 1/0; credit goes to Eloy Lafuente
2010-09-03 15:44:11 +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
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
38ead57d34
MDL-14679 more phpdocs improvements - fixed param types
2010-08-22 19:32:37 +00:00
Petr Skoda
3d54726fd4
MDL-14679 more phpdocs improvements
2010-08-22 19:26:48 +00:00
Petr Skoda
9331d879eb
MDL-14679 more return types added
2010-08-22 19:06:06 +00:00
Petr Skoda
f688db7d57
fixed comment typo
2010-08-22 19:01:09 +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