From 8fa7a86013f961f1dff48b3311b589a93b3b39d0 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sun, 17 Nov 2013 22:33:06 +0100 Subject: [PATCH] Implement typemod and default guards in the MySQL CAST clause. --- pgloader.1.md | 81 ++++++++++++++++++++++++------- src/parser.lisp | 57 +++++++++++++++++++--- src/sources/mysql-cast-rules.lisp | 45 ++++++++++++----- test/parse/hans.goeuro.load | 3 +- test/sakila.load | 5 +- 5 files changed, 149 insertions(+), 42 deletions(-) diff --git a/pgloader.1.md b/pgloader.1.md index 499bb18..d0f03b8 100644 --- a/pgloader.1.md +++ b/pgloader.1.md @@ -862,21 +862,62 @@ The `database` command accepts the following clauses and options: A casting rule is expected to follow the form: - type to [