Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSSql Money Type - Value is not correct #1494

Closed
drauber opened this issue May 24, 2023 · 1 comment
Closed

MSSql Money Type - Value is not correct #1494

drauber opened this issue May 24, 2023 · 1 comment

Comments

@drauber
Copy link

drauber commented May 24, 2023

Hello!

Anyone can help me about how i can migrate from Microsoft Sql Server to Postgresql database columns of type money?

I have few rows with round problem.

SqlServer says:
7082761.6900
2951150.7100
1770690.4200

But, Postgresql
7082761.5
2951150.8
1770690.4

I have run
docker run --rm dimitri/pgloader:latest pgloader mssql://sa:[email protected]/database postgresql://postgres:[email protected]/teste_douglas

I have tried with load file, and cast type money to "double precision" drop typemod;

but, the result is the same.

@drauber
Copy link
Author

drauber commented May 24, 2023

Now it works

docker run --rm -v /home/douglas:/data dimitri/pgloader:latest pgloader --load-lisp-file /data/custom.lisp /data/pgloader.load

files.zip

Attached files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant