summaryrefslogtreecommitdiff
path: root/lib/output
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output')
-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 02b0a4f..e7a4eb1 100644
--- a/lib/output/pq/typeMapper.cpp
+++ b/lib/output/pq/typeMapper.cpp
@@ -42,7 +42,7 @@ namespace MyGrate::Output::Pq {
add(R"(timestamp(\(\d+\))?)"_r, "timestamp without time zone"); // drops precision
add(R"(time)"_r, "time without time zone");
add(R"(time(\(\d+\))?)"_r, "time without time zone"); // drops precision
- add(R"(year)"_r, "smallint");
+ add(R"(year(\(\d+\))?)"_r, "smallint");
// https://dev.mysql.com/doc/refman/8.0/en/string-types.html
add(R"((var)?binary(\(\d+\))?)"_r, "bytea");
add(R"((var)?char(\(\d+\))?)"_r, "");