Commit Graph

141 Commits

Author SHA1 Message Date
Petr Skoda 69ac5d478f MDL-30147 do not rely on dml exception type outside of dml layer
The trouble is that dml driver methods (insert, update, select) are not guaranteed to return the same exception class for various db problems and coding style issues. The recommended practice is to catch dml_exception only.
2011-11-19 09:25:11 +01:00
Petr Skoda aa6dba5538 MDL-29321 tweak large varchar unit tests for oracle 2011-09-16 08:53:11 +02:00
Petr Skoda 2ba8f87a89 MDL-29322 instruct oracle to use current NLS char size when creating VARCHAR2 fields
This solves problems on servers with default configuration where VARCHAR2 sizes are specified in bytes. Also add more reserved words.
2011-09-16 08:51:09 +02:00
Petr Skoda 257ad88f89 MDL-29313 enforce varchar size limit 2011-09-16 08:49:42 +02:00
Petr Skoda b2cfdcf697 MDL-29314 enforce index size limits 2011-09-16 08:45:06 +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) 00570de599 MDL-26883 ddl - fix some function declarations 2011-03-18 14:40:20 +01:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda 438e22cc50 MDL-26351 fix property and docs typo
Credit goes to David Mudrak.
2011-02-15 09:46:35 +01:00
Petr Skoda a2d242bc09 MDL-26351 add support for postgresql running with standard_conforming_strings 2011-02-12 16:16:52 +01:00
Eloy Lafuente (stronk7) f30a13ab2b MDL-26333 ddl - better/safer temp column names 2011-02-09 17:36:57 +01:00
Petr Skoda e5dadefafc MDL-24322 grrr, fixing my previous commit, sorry Eloy 2010-09-21 10:40:48 +00:00
Petr Skoda 7c0808b6b8 MDL-24322 temporary working for broken prev/next handling in xmldb 2010-09-21 10:18:30 +00:00
Petr Skoda ac6f1a82f9 MDL-24321 switching to stdClass 2010-09-21 07:57:42 +00:00
Petr Skoda 7c109ea3f0 MDL-24276 "static abstract" combination is deprecated since PHP 5.2, replacing with our coding_style exception 2010-09-19 18:43:52 +00:00
Petr Skoda 209e00185b MDL-24276 abstract static methods not allowed since PHP 5.2, thanks Anthony Borrow for pointing this out 2010-09-18 22:43:51 +00:00
Petr Skoda 9d1ddd3743 fixed spelling errors 2010-09-17 20:20:24 +00:00
Petr Skoda dd63e0ff65 fixed $table when throwing exception 2010-09-17 20:19:05 +00:00
Petr Skoda 4fdfe0d404 fixed table var 2010-09-17 20:18:41 +00:00
Petr Skoda 524ad88107 fixed funny initialisation of static local variable 2010-09-14 16:14:19 +00:00
Petr Skoda 41a50aa254 MDL-19057 detect missing unique primary key on id columns 2010-09-14 16:13:06 +00:00
Petr Skoda 7e67b7b79e MDL-19057 more create_table tests for broken structure of table 2010-09-13 19:05:46 +00:00
Petr Skoda 844239d3ed MDL-24092 removing STATEMENTS support from install.xml, use db/install.php or db/log.php instead 2010-09-06 11:11:32 +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 c86f538116 MDL-21249 improved php docs and adding direct access prevention in ddl 2010-07-25 12:57:03 +00:00
Eloy Lafuente b31f126a2a NOBUG: nothing 2010-06-21 16:56:28 +00:00
Petr Skoda df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Eloy Lafuente 67a2f1c1d7 MDL-22804 hyphens in index names - Now the big-four handle/quote them properly 2010-06-16 16:15:23 +00:00
Petr Skoda a3790ed5db a few more DDL comment typos 2010-05-21 18:42:50 +00:00
Petr Skoda 72c45dcc1b DDL comment typos 2010-05-21 18:37:22 +00:00
Eloy Lafuente 5cada36315 MDL-22366 upgrade - always drop DB objects conditionally 2010-05-06 16:03:02 +00:00
Petr Skoda 0a03123fcf MDL-22167 removing sqlite because it is not maintained 2010-04-23 17:30:02 +00:00
Eloy Lafuente 10f375aa2e MDL-22076 temptables - warn and dropped on disposal 2010-04-21 16:12:27 +00:00
Eloy Lafuente a1656ddf79 MDL-21874 - phisics are physics :-P 2010-03-22 09:27:35 +00:00
Eloy Lafuente 90d07fa496 MDL-21874 - ddl object names cache. Don't use cache keys anymore. Leads to conflicts. 2010-03-22 09:24:57 +00:00
Eloy Lafuente 2ab686ee71 MDL-21868 mssql generator - improve integer meta type detection + test 2010-03-21 19:36:50 +00:00
Eloy Lafuente dd884a3ac5 NOBUG: Get back Oracle to normality (fix trigger/seq generation) after latest cache changes 2010-03-18 01:50:32 +00:00
Eloy Lafuente 38af117a91 NOBUG: partially re-introduce DB object static cache, as we need to avoid dupes
when two indexes are created in the same sentence and initials are the same (contenthash, contextid)
This introduces some problems in Oracle but... better to keep the rest working.
2010-03-18 00:48:48 +00:00
Eloy Lafuente 237e66198d MDL-21834 DDL tests - static caches aren't good for multiple connections in same request 2010-03-17 02:17:26 +00:00
Eloy Lafuente d61b3d0269 MDL-21834 DDL tests - fix concurrent temp tables for mssql + 1 incorrect test 2010-03-17 01:34:29 +00:00
Eloy Lafuente fbff152d22 MDL-21834 DDL tests - reveal some problems using concurrent temp tables 2010-03-16 19:02:18 +00:00
Eloy Lafuente a97c0dd598 MDL-21015 - add optional xmldb_structure cache in the install_one_table_from_xmldb_file()
method. 100x speedup for UnitTestCaseUsingDatabase tests. Defaults to false (old behaviour)
2009-12-01 18:10:51 +00:00
Petr Skoda 117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
skodak 0629a32e51 MDL-20624 fixed problem with PREV/NEXT dev hack in unittests 2009-10-22 14:40:29 +00:00
stronk7 15a0ffc8f0 MDL-20349 find_sequence_name() is out. No need to use it anymore. 2009-10-11 21:52:40 +00:00
stronk7 2b29d0fa83 MDL-17491 oci native driver: alter column from TEXT to integer/number now working 2009-09-28 23:16:55 +00:00
stronk7 f713581bc3 MDL-14679 table/column meta cache is reset on each request and DDL operation.
No need to call it with false parameter but in very exceptional ocasions.
2009-09-28 23:16:05 +00:00
stronk7 faceaf5580 MDL-14679: mssql and oracle generators now supporting new temptables impl. 2009-09-28 18:17:59 +00:00
stronk7 31c05684c3 MDL-17491 oracle driver: specify cache size always (20 = RDBMS default) 2009-09-25 23:21:18 +00:00
stronk7 24dc733e16 MDL-17491 oracle native driver: when renaming tables, 1st task is to drop
the associated on insert trigger, to avoid problems later.
2009-09-25 23:08:32 +00:00