Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10214] Correct Oracle create table query syntax in db_tools
This commit is contained in:
Andreas Fischer 2011-06-13 19:50:06 +02:00
commit 8a54aa5d68
2 changed files with 4 additions and 4 deletions

View file

@ -543,7 +543,7 @@ class phpbb_db_tools
break;
case 'oracle':
$table_sql .= "\n);";
$table_sql .= "\n)";
$statements[] = $table_sql;
// do we need to add a sequence and a tigger for auto incrementing columns?
@ -561,7 +561,7 @@ class phpbb_db_tools
$trigger .= "BEGIN\n";
$trigger .= "\tSELECT {$table_name}_seq.nextval\n";
$trigger .= "\tINTO :new.{$create_sequence}\n";
$trigger .= "\tFROM dual\n";
$trigger .= "\tFROM dual;\n";
$trigger .= "END;";
$statements[] = $trigger;

View file

@ -2710,7 +2710,7 @@ class updater_db_tools
break;
case 'oracle':
$table_sql .= "\n);";
$table_sql .= "\n)";
$statements[] = $table_sql;
// do we need to add a sequence and a tigger for auto incrementing columns?
@ -2728,7 +2728,7 @@ class updater_db_tools
$trigger .= "BEGIN\n";
$trigger .= "\tSELECT {$table_name}_seq.nextval\n";
$trigger .= "\tINTO :new.{$create_sequence}\n";
$trigger .= "\tFROM dual\n";
$trigger .= "\tFROM dual;\n";
$trigger .= "END;";
$statements[] = $trigger;