mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10214] Correct Oracle create table query syntax in db_tools
This commit is contained in:
commit
8a54aa5d68
2 changed files with 4 additions and 4 deletions
|
@ -543,7 +543,7 @@ class phpbb_db_tools
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'oracle':
|
case 'oracle':
|
||||||
$table_sql .= "\n);";
|
$table_sql .= "\n)";
|
||||||
$statements[] = $table_sql;
|
$statements[] = $table_sql;
|
||||||
|
|
||||||
// do we need to add a sequence and a tigger for auto incrementing columns?
|
// 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 .= "BEGIN\n";
|
||||||
$trigger .= "\tSELECT {$table_name}_seq.nextval\n";
|
$trigger .= "\tSELECT {$table_name}_seq.nextval\n";
|
||||||
$trigger .= "\tINTO :new.{$create_sequence}\n";
|
$trigger .= "\tINTO :new.{$create_sequence}\n";
|
||||||
$trigger .= "\tFROM dual\n";
|
$trigger .= "\tFROM dual;\n";
|
||||||
$trigger .= "END;";
|
$trigger .= "END;";
|
||||||
|
|
||||||
$statements[] = $trigger;
|
$statements[] = $trigger;
|
||||||
|
|
|
@ -2710,7 +2710,7 @@ class updater_db_tools
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'oracle':
|
case 'oracle':
|
||||||
$table_sql .= "\n);";
|
$table_sql .= "\n)";
|
||||||
$statements[] = $table_sql;
|
$statements[] = $table_sql;
|
||||||
|
|
||||||
// do we need to add a sequence and a tigger for auto incrementing columns?
|
// 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 .= "BEGIN\n";
|
||||||
$trigger .= "\tSELECT {$table_name}_seq.nextval\n";
|
$trigger .= "\tSELECT {$table_name}_seq.nextval\n";
|
||||||
$trigger .= "\tINTO :new.{$create_sequence}\n";
|
$trigger .= "\tINTO :new.{$create_sequence}\n";
|
||||||
$trigger .= "\tFROM dual\n";
|
$trigger .= "\tFROM dual;\n";
|
||||||
$trigger .= "END;";
|
$trigger .= "END;";
|
||||||
|
|
||||||
$statements[] = $trigger;
|
$statements[] = $trigger;
|
||||||
|
|
Loading…
Add table
Reference in a new issue