Skip to content

Update documentation and conn:reset() #43

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

Merged
merged 4 commits into from
Oct 6, 2020

Conversation

LeonidVas
Copy link
Contributor

Patchset includes:

  • Code and documentation cleanup
  • Added a check for the result of updating the connection authentication settings
  • Added description of running tests and conn:reset()

ChangeLog:
Added a check for the result of updating the connection authentication settings.

When "return error()" is used in Lua, an exception will be thrown.
Let's clarify this point in the documentation and code.
@LeonidVas LeonidVas self-assigned this Sep 10, 2020
@Totktonada
Copy link
Member

I didn't look thoroughly, to be honest, but I don't see anything dangerous and so it should be okay.

I would only return an error from driver.c and raise it from init.lua to eliminate extra pcall and to keep driver.c API more or less consistent (at least it returns an error from execute()).

…settings

We don't check the result of updating the connection authentication
settings in the conn: reset() method and failure will be detected
only when trying to execute a request. But in programming, it is a
good practice to check the result of the function.
The patch adds a check on the result of updating the connection
authentication settings. On failure, an exception will be thrown.
@LeonidVas LeonidVas force-pushed the lvasiliev/gh-no-ticket-cleanup-mysql branch from 5581450 to 690cf46 Compare October 6, 2020 08:32
@LeonidVas LeonidVas merged commit 8319410 into master Oct 6, 2020
@LeonidVas LeonidVas deleted the lvasiliev/gh-no-ticket-cleanup-mysql branch October 6, 2020 08:53
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