From e38c0dc77430c2815d63a79c519f8ff9e0eb0825 Mon Sep 17 00:00:00 2001 From: Daniel Atwood Date: Tue, 28 Jul 2020 11:01:42 -0400 Subject: [PATCH 1/2] Fixed typo in settings example in README emit_empty_slices was misspelled as emit_emptly_slices --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac847150b6..5cc57e31b6 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ packages: emit_prepared_queries: true emit_interface: false emit_exact_table_names: false - emit_emptly_slices: false + emit_empty_slices: false ``` Each package document has the following keys: From b65e8c46f1c30a8fae04e2e5ebf47e05386381e9 Mon Sep 17 00:00:00 2001 From: Daniel Atwood Date: Tue, 28 Jul 2020 13:13:04 -0400 Subject: [PATCH 2/2] Add support for ISNULL function --- internal/mysql/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mysql/functions.go b/internal/mysql/functions.go index 28cccdc712..3da2ed942a 100644 --- a/internal/mysql/functions.go +++ b/internal/mysql/functions.go @@ -8,7 +8,7 @@ import ( func functionReturnType(f string) string { switch f { case "avg", "count", "instr", "sum", "min", "max", "length", "char_length", - "ceil", "floor", "mod": + "ceil", "floor", "mod", "isnull": return "int" case "concat", "left", "replace", "substring", "trim", "find_in_set", "format", "group_concat": return "varchar"