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

support pgsql prepare and execute #40

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

digoal
Copy link

@digoal digoal commented Aug 3, 2021

modify the lua to support pgsql's prepare and execute syntax.

Copy link
Contributor

@vadimtk vadimtk left a comment

Choose a reason for hiding this comment

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

  1. please remove .old and .res files
  2. in file tpcc_run.lua there is no conditions on pgsql query execution

AND c_d_id = %d
AND c_id = %d]]):
format(table_num, table_num, w_id, d_id, c_id))
c_discount, c_last, c_credit, w_tax = con:query_row(([[execute p_new_order1_%d(%d,%d,%d)]]):format(table_num, w_id, d_id, c_id))
Copy link
Contributor

Choose a reason for hiding this comment

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

what if this is not pgsql?

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