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
stronk7
17f8278c34
MDL-19057 fix default test, rename one reserved word ("number") and add a few more default tests
2009-09-24 21:55:44 +00:00
stronk7
7d9c92a846
MDL-17491 oracle native driver: disable sequence cache before renaming, enable later
2009-09-24 21:52:23 +00:00
stronk7
8928d9256c
Better handling of FLOATS in oracle generator
2009-09-24 16:40:43 +00:00
stronk7
96158ee548
Properly truncating temp tables before dropping them.
2009-09-22 20:26:23 +00:00
stronk7
8127db52db
Added some DDL tests to check for proper empty defaults.
2009-09-22 17:57:08 +00:00
stronk7
692ae9122e
MDL-14679, MDL-17491 empty defaults: when passing empty ('') default to char/clob columns
...
apply correct $default_for_char, so each DB will get its correct empty value
2009-09-22 17:26:40 +00:00
stronk7
bad9a043a4
Test drop_enum_from_field() and friends. Interim tests for the 1.9 => 2.0
...
upgrade. Will be out after branching for 2.1
2009-09-09 12:55:01 +00:00
stronk7
4d163d02be
Do not force table type for temporary tables
2009-09-09 09:44:39 +00:00
stronk7
f94f10ca81
temp tables behaviour change: exception if exits on creation (like normal tables)
2009-09-09 09:41:37 +00:00
stronk7
4ff402d68e
MDL-15181 temporary tables support. No more differences in table_exists() +
...
implemented temptables store for mysql.
2009-08-31 15:47:46 +00:00
stronk7
b1ca138716
SQL generators must not execute changes in DB. Just provide the needed SQL
...
in order to make database_manager to execute it. reset_sequence reimplemented.
2009-08-31 14:23:40 +00:00
stronk7
18672a3e22
MDL-17969 mssql sql generator. Now works with temptables store and facilities
2009-08-30 23:24:08 +00:00
stronk7
c6ea7fc24e
Clean-up some conflicts introduced in my prev commit.
2009-08-30 23:18:24 +00:00
stronk7
f78c21037e
MDL-19057 adding some pending bits
2009-08-30 23:04:35 +00:00
stronk7
f906838a4e
Added some more tests to temp tables to show current implementation problems in mysql and mssql. Fix coming soon.
2009-08-29 01:17:57 +00:00
stronk7
0f887b881e
Delete the tweakTempTable() thing used to support temp tables in mssql.
...
Was hacky and incomplete. Proper solution must be mssql exclusive.
2009-08-28 17:30:18 +00:00
stronk7
c402af03a8
To alter columns back and forth between numeric types and text,
...
we need upto 3 intermediate alters.
Corolary: MSSQL implicit conversions aren't transitive at all! :-)
2009-08-28 01:19:49 +00:00
stronk7
eb8f775d97
Fix one wrong test. To get defaults applied, new column must be not null.
2009-08-28 01:14:32 +00:00
stronk7
e871fb87bb
workarround MSSQL (RDBMS) bug with float types. Not important as far as
...
we don't use floats within Moodle, but XMLDB layer supports them.
2009-08-25 21:06:14 +00:00
stronk7
25e9ef26eb
MDL-19974 postgres sql generator - delete unused variable
2009-07-30 22:16:09 +00:00
stronk7
c5ec08d67e
MDL-19057, MDL-19974 DDL tests - WIP: from 365 to 473 tests (add/drop field and change_field_type)
2009-07-30 22:12:42 +00:00
stronk7
4411f0d5f5
MDL-19974 postgres sql generator - simplified a lot thanks to 8.x as min req in Moodle 2.0 (alter column & defaults handling)
2009-07-30 22:08:47 +00:00
stronk7
d274f2096b
MDL-19695 dependencies - now every change_field_xxx() method looks for dependencies
2009-07-30 18:54:54 +00:00
skodak
e6c6531cce
MDL-19689 fixed strictness constants, thanks Tim
2009-07-04 09:30:59 +00:00
skodak
af12ea93ba
MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods
2009-07-03 22:38:56 +00:00
stronk7
122e7ef56c
MDL-19057 ddl tests - slowly advancing. Added some test to check for MDL-19695 behaviour
2009-07-02 16:13:30 +00:00
stronk7
2baf1380d4
MDL-19695 field dependencies - defined new exception ddl_dependency_exception that
...
will be thrown when one DDL operation (drop only for now) is attempted over one
field being part of indexes.
2009-07-02 16:08:44 +00:00
stronk7
86ffb13965
MDL-19057 ddl tests - complete a bit ddl table tests (and partially drop enum fields)
2009-06-28 22:12:20 +00:00
stronk7
db3a1eb8fd
MDL-19579 code coverage - prepare ddl & moodlelib tests to support code coverage
2009-06-23 09:30:59 +00:00
skodak
17da2e6f28
MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions
2009-06-19 14:25:56 +00:00
skodak
94b6329544
MDL-14679 license header fixes
2009-06-12 08:44:49 +00:00
stronk7
5b49a67cc1
MDL-18577 drop enums - annotating one more function to be dropped in Moodle 2.1
2009-05-25 14:43:29 +00:00
stronk7
d09af2e19f
MDL-18547 mysql floats - only none/both params (length & decimals) syntax is
...
allowed. So, if decimals are missing, enforce 0 if length is defined. Merged
from 19_STABLE
2009-05-11 15:11:23 +00:00
stronk7
f9ecb1716d
MDL-18577 drop enums support - fixed dml/ddl tests to be runnable once enums are out. Some
...
are failing but will be fixed/completed soon by MDL-19057
2009-05-03 23:46:40 +00:00
stronk7
2d2d79ef49
MDL-18577 drop enums support - step3: Drop enums from generator classes. Only code used to drop enums remains until Moodle 2.1
2009-05-01 23:49:31 +00:00
stronk7
2a88f626f7
MDL-18577 drop enums support - step2: enums out from editor, dbmanager and all upgrade scripts.
2009-05-01 01:19:16 +00:00