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

Add isUnicode parameter to StringLiteralQueryType function #1192

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

gilsonjoanelo
Copy link
Contributor

@gilsonjoanelo gilsonjoanelo commented Sep 24, 2024

included the isUnicode parameter in the StringLiteralQueryType method so that it can be turned off if desired. tests performed on Firebird 4 and Firebird 5

@gilsonjoanelo
Copy link
Contributor Author

code changed, do I send a new PR?

{
var length = MinimumStringQueryTypeLength(s);
EnsureStringLiteralQueryTypeLength(length);
return $"VARCHAR({length}) CHARACTER SET UTF8";
var charset = isUnicode ? " CHARACTER SET UTF8" : "";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use string.Empty instead of "".

@cincuranet
Copy link
Member

No need to send new PR.

@gilsonjoanelo
Copy link
Contributor Author

changed to string.empty

@cincuranet cincuranet merged commit 795b51b into FirebirdSQL:master Sep 26, 2024
24 checks passed
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.

2 participants