rename_to() error #2023
Mohan-sharma-Venkatesh
started this conversation in
General
Replies: 1 comment 1 reply
-
Can you verify this on newer version of Postgres? I want to double check on it. It seems like a bug that has always been there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The rename_to() function of struct
Struct sea_orm_migration::manager::SchemaManager
produces an error. The rename_to() is a function used to rename the Type.
But produces an error because it is not able to generate the SQL statement with double quotes
--> It produces the SQL statement with single quotes
Steps to Reproduce
Postgres DB version = 6.19
This will create an error
If you run only the raw query then the migration will run and rename the Type without any error
This states that there is an error near 'phonenumber'
Expected Behavior
This rename_to() function must generate SQL command
Actual Behavior
This remate_to() function actually generates
Difference is
'phonenumber' --> generated [This is produce the error]
"phonenumber" --> expected [This will work perfectly]
Must have generate " " instead of ' '
Reproduces How Often
This happens whenever you use the rename_to() function
Workarounds
Must have generated " " instead of ' '
Reproducible Example
Versions
Beta Was this translation helpful? Give feedback.
All reactions