Comments (3)
Same issue on character {
. Quite the same CREATE
statement.
2024-02-28T14:16:45.811995Z ERROR Database error 42601: syntax error at or near "{"
QUERY: CREATE TABLE destination.awesome_table
(
id char(36) not null,
my_awesome_field json not null default '_utf8mb4\'{}\''
);
2024-02-28T14:16:45.815995Z FATAL Failed to create the schema, see above.
from pgloader.
I am also affected.
I worked around this issue by temporally removing the default value and later adding it back (in the destination database).
from pgloader.
I have the same issue in my migration:
2024-04-16T13:54:31.640007Z ERROR Database error 42601: syntax error at or near "["
QUERY: CREATE TABLE public.email_template
(
id int not null,
type varchar(50) not null,
status smallint not null,
version int not null,
subject varchar(250) not null,
body text not null,
created_at timestamptz not null,
updated_at timestamptz not null,
sender_id int,
base_template_id int,
title varchar(255),
settings json default '_utf8mb4\'[]\''
);
2024-04-16T13:54:31.660007Z FATAL Failed to create the schema, see above.
2024-04-16T13:54:31.668007Z LOG report summary reset
table name errors rows bytes total time
----------------- --------- --------- --------- --------------
fetch meta data 0 1514 0.520s
Create Schemas 0 0 0.004s
Create SQL Types 0 0 0.020s
Create tables 0 0 0.000s
----------------- --------- --------- --------- --------------
----------------- --------- --------- --------- --------------
Tried to fix it with something like
before load do $$ alter table email_template alter settings set default null; $$
but had no luck
from pgloader.
Related Issues (20)
- MATERIALIZE VIEWS does not work for MySQL HOT 2
- How to migrate stored procedure in MySQL
- DB-CONNECTION-ERROR: Failed to connect to pgsql
- `:` in the connection string
- Unnable to use MSSQL as a source :
- Backslashes in Enum Values not possible.
- bytes after `0x00` get silently truncated when importing from mysql `text` column to pgsql
- 561400 of lisp codes in a single log for `WARNING Source column "table"."column" is casted to type #1=#S(PGLOADER.CATALOG:SQLTYPE {561398_LINES} which is not the same as "...", the type of current target database column ..."` HOT 1
- case-insensitivty
- `WITH max parallel create index 1` is still parallelly run many `CREATE INDEX` and the importing of next table
- SQLITE: Foreign keys not respecting quote identifiers option
- Migrating a database from MSSQL to PostgreSQL issue
- Underscore in host does not work / how to escape underscore in host name
- getting error ERROR sqlite: Failed to open sqlite file HOT 1
- Transforming specific column from int(sqlserver) to UUID(postgres)
- Transforming MS-SQL money datatype to PostgreSQL numeric(19, 4) datatype.
- MSSQL: How to speed up data copying?
- MSSQL connection string format HOT 1
- Anonymous code blocks don't work HOT 1
- Mssql: IDENTITY columns not detected in tables outside the default schema. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgloader.