For D7 we are now using '' (empty string) as undefined default language, for both locale, path, node and user modules. This issue hope to redefine this empty string as 'default'.
As mentioned in #334687: [DBTNG + XDB] NOT NULL fields using a DEFAULT '' clause , '' (empty string) is not always functioning for all database engine, e.g. Oracle will translate empty string as NULL automatically, which is not ANSI standard. It is also not too meaningful if using empty string as undefined default value. Use 'default' seems to be a possible replacement.
This patch can help #334687: [DBTNG + XDB] NOT NULL fields using a DEFAULT '' clause : once they are integrated, all 4 error message for path simpletest are solved. This patch also tested with all MySQL + simpletest test case and pass.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | default-language-1227556128.patch | 20.26 KB | hswong3i |
| language-default-1227088395.patch | 20.25 KB | hswong3i |
Comments
Comment #2
chx commentedWe are still not into changing core because Oracle is buggy. I explained in painkstaking detail at http://drupal.org/node/334687
Comment #3
hswong3i commentedThis idea is not something new, locale module also coming with the use of 'default'. With revamp default undefined language as 'default' we can sync with locale's handling in similar coding style and syntax, which are both i18n related.
modules/locale/locale.install (line 326):
modules/locale/locale.module (line 380):
includes/locale.inc (line 1675):
Comment #5
catchThere's a difference between locale.module providing a default group of language strings - similar to the default contrib module package of 'other' - something which is used in the UI, and changing a convention across the board. If this can at all be dealt with in the Oracle driver, which going by SQLite it should be, then it needs to be done there.