summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2023-02-02 03:03:46 -0700
committerAndrew Kaster <andrewdkaster@gmail.com>2023-02-02 05:35:44 -0700
commitae9dc95b1f04d68f9b998163a0e89fd3582ff60d (patch)
tree34120a56357efee37dfe3720bc205d0d46d8feb3 /Userland/Utilities
parent3e6d790cf07024f6ed0e5246e0c2b091fed65638 (diff)
downloadserenity-ae9dc95b1f04d68f9b998163a0e89fd3582ff60d.zip
LibSQL+Ladybird: Accept a list of paths for spawning SQLServer in Lagom
Use the new get_paths_for_helper_process method in Ladybird to query Qt for the runtime path of the current executable as well as the build directory paths.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/sql.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Utilities/sql.cpp b/Userland/Utilities/sql.cpp
index cb5c599e22..b263973b01 100644
--- a/Userland/Utilities/sql.cpp
+++ b/Userland/Utilities/sql.cpp
@@ -7,6 +7,7 @@
#include <AK/DeprecatedString.h>
#include <AK/Format.h>
+#include <AK/String.h>
#include <AK/StringBuilder.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/File.h>
@@ -361,8 +362,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
#if defined(AK_OS_SERENITY)
auto sql_client = TRY(SQL::SQLClient::try_create());
#else
- VERIFY(sql_server_path != nullptr);
- auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client(sql_server_path));
+ VERIFY(!sql_server_path.is_empty());
+ auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client({ TRY(String::from_utf8(sql_server_path)) }));
#endif
SQLRepl repl(loop, database_name, move(sql_client));