Hi there.
SchemaTest has some problems with not MySQL database.
For example I work to port Oracle Driver for D8 now, and this test fails.
1) Function db_copy_table_schema is fully supported only by MySQL.
We need to allow other database drivers pass this test.
See #2056133: Add db_copy_table_schema
2) Method SchemaTest::testSchema() have wrong implementation of database specific data type.
If we do not set 'type' param in field specification test will pass only with core database drivers.
3) Precision range for fields with numeric types is hardcoded in SchemaTest::testSchemaAddField() method.
Precision range is not the same in different databases:
- MySQL has a range of 1 to 65;
- PgSQL allow up to 1000 digits;
- Oracle limited to 38 digits.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal-SchemaTest-add_support_for_not_MySQL_drivers.patch | 4.56 KB | internetdevels |
Comments
Comment #1
andypostwe need mention sqlite here because it's a core test
nice catch
suppose this shows us that bug exists in implementation
Not sure that hidding it makes sense
Comment #2
jhedstromNeeds work per #1.
Comment #3
bojanz commentedIs this a duplicate of #2061879: Remove Schema::copyTable, or is there more work that needs to happen?
Comment #5
daffie commentedThe SchemaTest passes for all supported databases.