Closed TheCedarPrince closed 2 years ago
This an issue with MySQL.jl not accepting an arbitrary AbstractString
value as a SQL query: https://github.com/JuliaDatabases/MySQL.jl/issues/189
Note that if you create a connection object for FunSQL.DB{MySQL.Connection}
, you could apply DBInterface.execute
directly to the FunSQL query object:
conn = DBInterface.connect(FunSQL.DB{MySQL.Connection}, "my.host.com", "username", "password"; db = "database", port = 3306, unix_socket = MySQL.API.MYSQL_DEFAULT_SOCKET, client_flag=MySQL.API.CLIENT_MULTI_STATEMENTS, opts = Dict())
From(tab) |> Select(Get.foo) |> Limit(1) |> q -> DBInterface.execute(conn, q) |> DataFrame
Hi all,
I seem to be having a strange issue where the following code does not work as expected:
Where my connection looks like this:
A workaround to this I found was doing the following:
Which returned the expected result. This seems like a bug where
FunSQL.SQLString
is not accepted when I expected it to be. Is this a bug?Details:
FunSQL Version: [cf6cc811] FunSQL v0.10.1 Julia Version: 1.7.0 OS: Mac OSX