summaryrefslogtreecommitdiff
path: root/Userland/Utilities/sql.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-10-27 13:04:42 -0400
committerLinus Groh <mail@linusgroh.de>2022-11-30 11:43:13 +0100
commit0986b383cdc9e6646ce00d2f824180918aedeb93 (patch)
tree934889d5b106dedf201ce77573feb70f72f94c91 /Userland/Utilities/sql.cpp
parent17988bab7518658f66c649b540a7d4b795f13fd5 (diff)
downloadserenity-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/Utilities/sql.cpp')
-rw-r--r--Userland/Utilities/sql.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/sql.cpp b/Userland/Utilities/sql.cpp
index 309e685288..b9456a76d3 100644
--- a/Userland/Utilities/sql.cpp
+++ b/Userland/Utilities/sql.cpp
@@ -291,8 +291,8 @@ private:
read_sql();
});
} else {
- auto statement_id = m_sql_client->sql_statement(m_connection_id, piece);
- m_sql_client->async_statement_execute(statement_id);
+ auto statement_id = m_sql_client->prepare_statement(m_connection_id, piece);
+ m_sql_client->async_execute_statement(statement_id);
}
// ...But m_keep_running can also be set to false by a command handler.