When switching to a different language i'm getting:
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1458, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1459, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1460, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1460, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1461, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1462, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1463, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1466, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
# user warning: Field 'translation' doesn't have a default value query: INSERT INTO locales_target (lid, locale) VALUES (1467, 'de') in C:\sites\drupal\includes\database.mysql.inc on line 116.
etc
etc

I dont know if i can use 4.6.x po-files on Drupal 4.7.x, and if i cant use them, how do i know if a po-file is "4.7.x ready"?

I'm running:
windows 2003
IIS
PHP 5.0.5
Mysql 5.0.16 (in strict mode: sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION")

CommentFileSizeAuthor
#5 l_0.patch1.44 KBchx
#2 l.patch808 byteschx

Comments

chx’s picture

Assigned: Unassigned » chx

ah yes. while patching up database.mysq is trivial, I will need to write an update function, too. so assigning for myself.

chx’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new808 bytes
dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

hunmonk’s picture

Status: Fixed » Active

i don't think the problem is fixed. i get this when i run the db upgrade:

user warning: BLOB column 'translation' can't have a default value query: ALTER TABLE locales_target ALTER COLUMN translation SET DEFAULT '' in /home/apartme/public_html/bzr/undo/includes/database.mysql.inc on line 120.

looking in the mysql manual, i see:

"BLOB and TEXT columns cannot have DEFAULT values."

chx’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new1.44 KB

You guys are fun.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)