diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-10-27 13:04:42 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-30 11:43:13 +0100 |
commit | 0986b383cdc9e6646ce00d2f824180918aedeb93 (patch) | |
tree | 934889d5b106dedf201ce77573feb70f72f94c91 /Userland/DevTools | |
parent | 17988bab7518658f66c649b540a7d4b795f13fd5 (diff) | |
download | serenity-0986b383cdc9e6646ce00d2f824180918aedeb93.zip |
SQLServer+SQLStudio+sql: Rename a couple of SQL IPC commands for clarity
Rename sql_statement to prepare_statement and statement_execute to
execute_statement. The former aligns more with other database libraries
(e.g. Java's JDBC prepareStatement). The latter reads less awkwardly.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/SQLStudio/MainWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/SQLStudio/MainWidget.cpp b/Userland/DevTools/SQLStudio/MainWidget.cpp index 9c8917f3b7..929ed1dff6 100644 --- a/Userland/DevTools/SQLStudio/MainWidget.cpp +++ b/Userland/DevTools/SQLStudio/MainWidget.cpp @@ -478,8 +478,8 @@ String MainWidget::read_next_sql_statement_of_editor() m_editor_line_level = last_token_ended_statement ? 0 : (m_editor_line_level > 0 ? m_editor_line_level : 1); } while ((m_editor_line_level > 0) || piece.is_empty()); - auto statement_id = m_sql_client->sql_statement(m_connection_id, piece.to_string()); - m_sql_client->async_statement_execute(statement_id); + auto statement_id = m_sql_client->prepare_statement(m_connection_id, piece.to_string()); + m_sql_client->async_execute_statement(statement_id); return piece.to_string(); } |