Skip to content

Conversation

worksofliam
Copy link
Member

@worksofliam worksofliam commented Jul 1, 2025

Adds a new prefix, bind, which allows users to bind values into prior statements that contain parameter markers or host variables.

select * from employee where workdept = ? and salary >= :minSalary;

bind: 'A00', 20000;
bind: 'A00', 40000;

You'll also find that when executing bind statements, history will be updated to store the original statement and will also include storing the bind statement being executed into the history of that statement.

Additionally, fixes some bugs for statement execution.

Copy link

github-actions bot commented Jul 1, 2025

👋 A new build is available for this PR based on 96b4954.

@worksofliam worksofliam marked this pull request as ready for review July 1, 2025 21:26
@forstie
Copy link
Collaborator

forstie commented Jul 2, 2025

Several problems have been reported to Liam...

Copy link
Collaborator

@forstie forstie left a comment

Choose a reason for hiding this comment

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

Could you upper case the token before comparing with NULL?

Copy link
Collaborator

@forstie forstie left a comment

Choose a reason for hiding this comment

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

Everything is working great now.

@worksofliam worksofliam merged commit ca90585 into main Jul 2, 2025
1 check 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.

Prompt user to supply host/bind variable values when Running SQL with host vars
2 participants