Skip to content

Commit

Permalink
trying to log the parent SQL log item
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Nov 26, 2024
1 parent c8cfebe commit fb16feb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -14211,8 +14211,14 @@ <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) {
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",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])
}
}
}

}
Expand Down

0 comments on commit fb16feb

Please sign in to comment.