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

SybaseIQ SQL generation fixes - Handling boolean operations #2398

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

gs-kotang
Copy link
Contributor

What type of PR is this?

  • Bug Fix

What does this PR do / why is it needed ?

SybaseIQ doesn't support Boolean Literals. This pr includes two changes that are related boolean handling in sybase.

Change in dbExtension (this applies to all the dbs that don't support boolean literals) -
Scope of this change is dyna functions (that aren't boolean operations) and can take Boolean operations as parameters.
For such functions, we need to explicitly handle the return value of boolean operations. We do that by wrapping the boolean operation parameters in a case statement.

Change in sybaseIqExtension -
The having clause is always expected to return a boolean. We use wrapAsBooleanOperation() on the having string to handle the boolean operations.

Which issue(s) this PR fixes:

Fixes #

Other notes for reviewers:

Does this PR introduce a user-facing change?

No

@gs-kotang gs-kotang requested a review from a team as a code owner October 20, 2023 09:38
@github-actions
Copy link

Test Results

     694 files  +     694       694 suites  +694   1h 0m 48s ⏱️ + 1h 0m 48s
11 460 tests +11 460  11 076 ✔️ +11 076  384 💤 +384  0 ±0 
14 354 runs  +14 354  13 886 ✔️ +13 886  468 💤 +468  0 ±0 

Results for commit bfdb73b. ± Comparison against base commit 0ca8d0a.

@gs-ssh16
Copy link
Contributor

/easycla

@gs-ssh16 gs-ssh16 merged commit ccf31bb into finos:master Oct 26, 2023
3 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