mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Update fetchPostgreSQLTableStructure.cpp
This commit is contained in:
parent
61bf623a3c
commit
192ee2df98
@ -9,7 +9,7 @@
|
|||||||
#include <DataTypes/DataTypeArray.h>
|
#include <DataTypes/DataTypeArray.h>
|
||||||
#include <DataTypes/DataTypesDecimal.h>
|
#include <DataTypes/DataTypesDecimal.h>
|
||||||
#include <DataTypes/DataTypeDate.h>
|
#include <DataTypes/DataTypeDate.h>
|
||||||
#include <DataTypes/DataTypeDateTime.h>
|
#include <DataTypes/DataTypeDateTime64.h>
|
||||||
#include <boost/algorithm/string/split.hpp>
|
#include <boost/algorithm/string/split.hpp>
|
||||||
#include <boost/algorithm/string/trim.hpp>
|
#include <boost/algorithm/string/trim.hpp>
|
||||||
#include <Common/quoteString.h>
|
#include <Common/quoteString.h>
|
||||||
@ -71,7 +71,7 @@ static DataTypePtr convertPostgreSQLDataType(String & type, const std::function<
|
|||||||
else if (type == "bigserial")
|
else if (type == "bigserial")
|
||||||
res = std::make_shared<DataTypeUInt64>();
|
res = std::make_shared<DataTypeUInt64>();
|
||||||
else if (type.starts_with("timestamp"))
|
else if (type.starts_with("timestamp"))
|
||||||
res = std::make_shared<DataTypeDateTime>();
|
res = std::make_shared<DataTypeDateTime64>(6);
|
||||||
else if (type == "date")
|
else if (type == "date")
|
||||||
res = std::make_shared<DataTypeDate>();
|
res = std::make_shared<DataTypeDate>();
|
||||||
else if (type.starts_with("numeric"))
|
else if (type.starts_with("numeric"))
|
||||||
|
Loading…
Reference in New Issue
Block a user