From 785803fe5bf09593b43124931bbe8d49af527741 Mon Sep 17 00:00:00 2001 From: Alexander Plavin Date: Tue, 10 Sep 2024 13:56:35 +0200 Subject: [PATCH] fix MySQL reflection --- src/reflect.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reflect.jl b/src/reflect.jl index b2bb4d3b..d90a7570 100644 --- a/src/reflect.jl +++ b/src/reflect.jl @@ -18,7 +18,7 @@ const duckdb_reflect_clause = :column => (:c, :column_name)) const mysql_reflect_clause = FROM(:c => (:information_schema, :columns)) |> - WHERE(FUN("=", (:c, :table_schema), FUN(:coalesce, VAR(:schema), FUN("DATABASE ")))) |> + WHERE(FUN("=", (:c, :table_schema), FUN(:coalesce, VAR(:schema), FUN("DATABASE")))) |> ORDER((:c, :table_schema), (:c, :table_name), (:c, :ordinal_position)) |> SELECT(:schema => (:c, :table_schema), :name => (:c, :table_name),