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

Fix build warnings in sys_functions.sql and babelfishpg_tsql.sql #3030

Conversation

thephantomthief
Copy link
Contributor

@thephantomthief thephantomthief commented Oct 18, 2024

Description

In sys_functions.sql and babelfishpg_tsql.sql files, we have defined
the system objects that internally reference the string '\'. During
build, the compiler treats \' as an escaped quote and thus complains
that there is an unterminated quote. To fix this, added a single quote
as a comment at relevant lines.

Task: BABEL-5359
Signed-off-by: Sharu Goel [email protected]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

In sys_functions.sql file, we have defined the sys.is_member() function
which internally calls CHARINDEX('\', ...). During build, the compiler
treats \' as an escaped quote and thus complains that there is
unterminated quote. To fix this, added a single quote as a comment.

Signed-off-by: Sharu Goel <[email protected]>
@coveralls
Copy link
Collaborator

coveralls commented Oct 18, 2024

Pull Request Test Coverage Report for Build 11548870192

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 74.526%

Totals Coverage Status
Change from base Build 11522401238: 0.0%
Covered Lines: 45249
Relevant Lines: 60716

💛 - Coveralls

@tanscorpio7
Copy link
Contributor

Three other similar warnings in extension build.

Signed-off-by: Sharu Goel <[email protected]>
@thephantomthief thephantomthief changed the title Fix build warning in sys_functions.sql Fix build warnings in sys_functions.sql and babelfishpg_tsql.sql Oct 21, 2024
@kuntalghosh kuntalghosh merged commit 27ce17a into babelfish-for-postgresql:BABEL_4_X_DEV Oct 28, 2024
46 checks passed
@kuntalghosh kuntalghosh deleted the sharu-dev-comment-quote branch October 28, 2024 09:15
Deepesh125 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Oct 28, 2024
…elfish-for-postgresql#3030)

In sys_functions.sql file, we have defined the sys.is_member() function
which internally calls CHARINDEX('\', ...). During build, the compiler
treats \' as an escaped quote and thus complains that there is
unterminated quote. To fix this, added a single quote as a comment.

Task: BABEL-5359
Signed-off-by: Sharu Goel <[email protected]>
thephantomthief added a commit to amazon-aurora/babelfish_extensions that referenced this pull request Oct 28, 2024
In sys_functions.sql file, we have defined the sys.is_member() function
which internally calls CHARINDEX('\', ...). During build, the compiler
treats \' as an escaped quote and thus complains that there is
unterminated quote. To fix this, added a single quote as a comment.

Task: BABEL-5359
Signed-off-by: Sharu Goel <[email protected]>
shardgupta pushed a commit that referenced this pull request Oct 28, 2024
In sys_functions.sql file, we have defined the sys.is_member() function
which internally calls CHARINDEX('\', ...). During build, the compiler
treats \' as an escaped quote and thus complains that there is
unterminated quote. To fix this, added a single quote as a comment.

Task: BABEL-5359

Signed-off-by: Sharu Goel <[email protected]>
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

Successfully merging this pull request may close these issues.

5 participants