Skip to content

Commit

Permalink
Merge branch 'QA_4_3' into QA_4_4
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Mar 17, 2015
2 parents 18e8b5d + 4b8f3c9 commit a278b80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -68,6 +68,7 @@ explanation
4.3.13.0 (not yet released)
- bug #4803 "Show hidden items" is sometimes hidden
- bug #4807 Breaks when sorting by multiple columns while using UNION
- bug #4798 Missing column when exporting in sql

4.3.12.0 (2015-03-14)
- bug #4746 Right-aligned columns have left-aligned header
Expand Down
3 changes: 2 additions & 1 deletion libraries/plugins/export/ExportSql.class.php
Expand Up @@ -1374,9 +1374,10 @@ public function getTableDef(
// lets find first line with constraints
$first_occur = -1;
for ($i = 0; $i < $sql_count; $i++) {
$sql_line = current(explode(' COMMENT ', $sql_lines[$i], 2));
if (preg_match(
'@[\s]+(CONSTRAINT|KEY)@',
$sql_lines[$i]
$sql_line
) && $first_occur == -1) {
$first_occur = $i;
}
Expand Down

0 comments on commit a278b80

Please sign in to comment.