COPY ... FROM stdin throws "missing data for column" error #1945
Labels
Milestone
Comments
axelfontaine
added a commit
to flyway/flywaydb.org
that referenced
this issue
Mar 14, 2018
dohrayme
pushed a commit
to dohrayme/flyway
that referenced
this issue
Feb 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which version and edition of Flyway are you using?
5.0.7
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Postgres 9.5.11
Which operating system are you using?
Linux Mint 18.2 Sonya
What did you do?
On a fresh database I attempted to run flyway on a folder containing a single migration:
flyway -url=jdbc:postgresql://localhost:5432/mytest -user=myuser -password=mypass -locations=filesystem:/home/myuser/sql/migrations migrate
/home/myuser/sql/migrations/V1__initial_create:
What did you expect to see?
A "migration success" message.
What did you see instead?
Other notes
Note that there is a trailing tab after the 1 in the COPY'd row. The migration seems to fail whenever the last row ends with a tab. The migration process succeeds if I add another that row does not end with a tab, like:
The text was updated successfully, but these errors were encountered: