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

SQL formatting using API giving wrong results #8

Open
PriyaNath007 opened this issue Aug 27, 2020 · 4 comments
Open

SQL formatting using API giving wrong results #8

PriyaNath007 opened this issue Aug 27, 2020 · 4 comments

Comments

@PriyaNath007
Copy link

PriyaNath007 commented Aug 27, 2020

In the web interface (http://www.dpriver.com/pp/sqlformat.htm) when I pass db as mssql and format as sql: html text then the results that i get while i do copy to clipboard contains proper "<BR>" and "&nbsp;" tags but while i am doing the same with API call I am just getting"\n" in place of space

Can u get the same results as the web interface?? Please let me know.

Note: I tried various combinations by passing db format and vendor but always got the same results

@PriyaNath007
Copy link
Author

@sqlparser @cnfree

@PriyaNath007
Copy link
Author

@lukaseder

@cnfree
Copy link
Collaborator

cnfree commented Aug 31, 2020

@PriyaNath007

Please set the outputfmt property as SQL, but not html

html outputfmt will output the html tags.

image

@PriyaNath007
Copy link
Author

PriyaNath007 commented Aug 31, 2020

@cnfree @sqlparser Hi Chen Chao,

Thanks a lot for your reply. I think there is an issue with the API parser and also inline parser link(http://www.gudusoft.com/link.html). When trying with query which contains UNION ALL Select statements without any braces it's not able to give the output, but at the same time the same query is working on the Web Interface((http://www.dpriver.com/pp/sqlformat.htm))

Ex query:- Select * from abc UNION ALL Select * from bcd

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

2 participants