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

[APIS-900] Add Autocommit mode to ODBC Data Source Setting window #53

Merged
merged 2 commits into from
Feb 23, 2022

Conversation

airnet73
Copy link
Contributor

http://jira.cubrid.org/browse/APIS-900

Purpose
ODBC driver always works with autocommit=false. (Cannot be changed)
In this state, if more than 100 queries are performed in one transaction, an error occurs.To solve this problem, Autocommit mode should be added to the ODBC setting window so that the user can set it himself.

Error message:
[-830]Cannot allocate query entry any more. Maximum allocatable entries are 100

Implementation
N/A

Remarks
N/A

@airnet73 airnet73 requested a review from kisoo-han February 21, 2022 08:47
@airnet73 airnet73 self-assigned this Feb 21, 2022
Comment on lines 821 to 823
ut_tolower (autocommit);
pt = autocommit == NULL ? "on" : autocommit;
if (strcmp (autocommit, "on") == 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: remove function ut_tolower () and use case independent string compare, _strcmp(), as other codes do, if it is possible.

  pt = autocommit == NULL ? "on" : autocommit;
  if (_strcmp (autocommit, "on") == 0)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ut_tolower() is to compare the strings input in AUTOCOMMIT without case-sensitive.
Are you saying it should be case sensitive?

Copy link
Contributor

Choose a reason for hiding this comment

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

_strcmp() is case insensitive string compare.

Copy link
Contributor

Choose a reason for hiding this comment

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

My mistake it was
_stricmp ()

Copy link
Contributor

Choose a reason for hiding this comment

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

  pt = autocommit == NULL ? "on" : autocommit;
  if (_stricmp (autocommit, "on") == 0)

@kisoo-han
Copy link
Contributor

It would be nice to pass the test build to the ERWIN for feedback.

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