Grut
19-02-07, 09:01 PM
Hi,
I've noticed some problems with the backup module (maybe due to mysql5)
First, the xml file generated seems to be wrong.
For the sql file, there are some errors in it, I try to correct them:
- A comma is missing before the primary keys defintion, so I add line 116
$output .= "\r\n" . ' , PRIMARY KEY ( `'. implode('`, `', $primary) . '` )';
- The default value 'currenttimestamp' is malformed, so I add line 92
if ($details->has_default) {
if ($details->default_value == 'CURRENT_TIMESTAMP')
$output .= ' DEFAULT ' . $details->default_value . '()';
else
$output .= ' DEFAULT ' . "'$details->default_value'";
}
It's just a fix, but it seems to work.
Am I the only one with such worries with the backup module?
I've noticed some problems with the backup module (maybe due to mysql5)
First, the xml file generated seems to be wrong.
For the sql file, there are some errors in it, I try to correct them:
- A comma is missing before the primary keys defintion, so I add line 116
$output .= "\r\n" . ' , PRIMARY KEY ( `'. implode('`, `', $primary) . '` )';
- The default value 'currenttimestamp' is malformed, so I add line 92
if ($details->has_default) {
if ($details->default_value == 'CURRENT_TIMESTAMP')
$output .= ' DEFAULT ' . $details->default_value . '()';
else
$output .= ' DEFAULT ' . "'$details->default_value'";
}
It's just a fix, but it seems to work.
Am I the only one with such worries with the backup module?