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

TO_CHAR conversion (Oracle -> SQL Server) #49

Open
kfordaccela opened this issue Oct 15, 2019 · 0 comments
Open

TO_CHAR conversion (Oracle -> SQL Server) #49

kfordaccela opened this issue Oct 15, 2019 · 0 comments

Comments

@kfordaccela
Copy link

kfordaccela commented Oct 15, 2019

“Oracle” to “SQL Server” TO_CHAR is not being converted to a “CAST” or “CONVERT” as it should be. This is consistent online as well as in the Command line program.

Input given:

SELECT TO_CHAR(COALESCE(GPH2.SD_APP_DD,SYSDATE),'MM/DD/YYYY') reportdate
FROM DUAL GPH2

Output that was returned:
SELECT TO_CHAR(COALESCE(GPH2.SD_APP_DD,GETDATE()),'MM/DD/YYYY') reportdate

Version used to check locally: SQLines 3.1.113 - Windows 32-bit, 5.3 MB, July 02, 2018 (Most Recent Windows Release for SQL conversion only)

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