summaryrefslogtreecommitdiff
path: root/lib/output/pq
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-27 20:29:22 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-27 20:29:22 +0100
commit78f1da756eefb86f0e4fbf9182497893da64fb6f (patch)
tree79b7adb771f27ff3fcbf745bd8aedf066c234cd2 /lib/output/pq
parentFix parsing of date type (diff)
downloadmygrate-78f1da756eefb86f0e4fbf9182497893da64fb6f.tar.bz2
mygrate-78f1da756eefb86f0e4fbf9182497893da64fb6f.tar.xz
mygrate-78f1da756eefb86f0e4fbf9182497893da64fb6f.zip
Fix type mapping of real/double
Diffstat (limited to 'lib/output/pq')
-rw-r--r--lib/output/pq/typeMapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output/pq/typeMapper.cpp b/lib/output/pq/typeMapper.cpp
index e49f707..02b0a4f 100644
--- a/lib/output/pq/typeMapper.cpp
+++ b/lib/output/pq/typeMapper.cpp
@@ -33,7 +33,7 @@ namespace MyGrate::Output::Pq {
add(R"(bigint(\(\d+\))?( (un)?signed)?)"_r, "bigint");
add(R"((numeric|decimal)(\(\d+(,\d+)?\))?)"_r, "");
add(R"(float(\(\d+,\d+\))?)"_r, "float");
- add(R"((real|double( precision)?)(\(\d+,\d+\))?)"_r, "double");
+ add(R"((real|double( precision)?)(\(\d+,\d+\))?)"_r, "real");
// https://dev.mysql.com/doc/refman/8.0/en/date-and-time-types.html
add(R"(date)"_r, "date");
add(R"(datetime)"_r, "timestamp without time zone");