Skip to content

Commit

Permalink
dont use auto ID for "ui_table_command_source_file_lines"
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 2, 2025
1 parent c672421 commit e118f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -14062,7 +14062,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
*/
tableName: "ui_table_command_source_file_lines",
fields: [
{name: "id", fieldType: "INT PRIMARY KEY AUTOINCREMENT"},
{name: "id", fieldType: "INTEGER"},
{name: "source_file_name", fieldType: "STRING"},
{name: "source_line_number", fieldType: "INTEGER"},
{name: "source_line_text", fieldType: "STRING"}
Expand Down Expand Up @@ -14125,8 +14125,8 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
let existsRow = yz.uiDb.sqlui1("select id from ui_table_command_source_file_lines where source_file_name= ? and source_line_number = ?",
[fileSourceRecord.source_file_name , currentLineNumber])
if (!existsRow) {
yz.uiDb.sqlui("INSERT INTO ui_table_command_source_file_lines ( source_file_name , source_line_text , source_line_number ) VALUES (?,?,?)",
[fileSourceRecord.source_file_name, currentLine, currentLineNumber])
yz.uiDb.sqlui("INSERT INTO ui_table_command_source_file_lines ( id , source_file_name , source_line_text , source_line_number ) VALUES (?,?,?,?)",
[yz.uiDb.uiDbNextId ++,fileSourceRecord.source_file_name, currentLine, currentLineNumber])
}
}
console.log("Filename: " + fileSourceRecord.source_file_name)
Expand Down

0 comments on commit e118f24

Please sign in to comment.