Skip to content

Commit

Permalink
[tools] fix instrument SQL generator script (aces#9313)
Browse files Browse the repository at this point in the history
Fix syntactically invalid SQL generation.

Fix for aces#9312.
  • Loading branch information
maximemulder committed Sep 24, 2024
1 parent 5329ba6 commit 3ee5b06
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/generate_tables_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
continue;
}
switch ($bits[0]) {
// No SQL generated for these cases.
case "testname":
case "title":
case "header":
continue 2;

// generate the CREATE TABLE syntax
case "table":
$tablename = $bits[1];
Expand All @@ -65,11 +71,6 @@

break;

// no SQL need be generated.
case "title":
case "header":
continue 2;

// generate specific column definitions for specific types of HTML elements
default:
if (isset($bits[1]) && $bits[1] === '') {
Expand Down

0 comments on commit 3ee5b06

Please # to comment.