Skip to content

Commit

Permalink
Added "yz.uiDb.currentDebugStack.currentSqlLogId"
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Nov 26, 2024
1 parent fb16feb commit 8e0dac9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13456,7 +13456,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
sourceFileName,
lineNumber
])
//zzz
yz.uiDb.currentDebugStack.currentSqlLogId = yz.uiDb.sqlui1("select max(id) as id from ui_table_debug_sql_log").id
}
}
if (startOfSql.startsWith("update") || startOfSql.startsWith("delete")) {
Expand Down Expand Up @@ -14211,13 +14211,9 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
"ui_table_command_source_file_lines",
"ui_table_debug_data_log"
].indexOf(tableName) == -1) {
if (yz.uiDb.currentDebugStack.currentSqlDebugId) {
let steps = yz.uiDb.currentDebugStack.steps
if (steps.length > 0) {
let lastStepId = steps[steps.length - 1]
yz.uiDb.sqlui( "insert into ui_table_debug_data_log ( table_name , new_value , operation_type , fk_parent_debug_sql_log_id ) values (?,?,?,?)",
[tableName, JSON.stringify(r),"INSERT",lastStepId])
}
if (yz.uiDb.currentDebugStack.currentSqlLogId) {
yz.uiDb.sqlui( "insert into ui_table_debug_data_log ( table_name , new_value , operation_type , fk_parent_debug_sql_log_id ) values (?,?,?,?)",
[tableName, JSON.stringify(r),"INSERT",yz.uiDb.currentDebugStack.currentSqlLogId])
}
}

Expand Down Expand Up @@ -14305,6 +14301,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
currentDebugStack: {
currentDebugId: null,
currentSqlDebugId: null,
currentSqlLogId: null,
debugTracerId: null,
debugTick: 1,
start: null,
Expand Down

0 comments on commit 8e0dac9

Please sign in to comment.