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

Misc fixes #6

Closed
wants to merge 4 commits into from
Closed

Misc fixes #6

wants to merge 4 commits into from

Conversation

daurnimator
Copy link
Contributor

Clean up as I use the library.

  - In pgsql_connectdb, if lua_newuserdata failed, the connection object would leak
  - In pgsql_connectStart, PQconnectStart could have returned NULL, and the user would have an invalid connection object
@mbalmer
Copy link
Collaborator

mbalmer commented Dec 21, 2014

Check out the latest release or head branch, it now contains almost everything (if not all) that you suggested.

@daurnimator
Copy link
Contributor Author

Thankyou.

One other API changing modification to make is around return values. The are functions that return 0 or 1, or -1 and 0. Using actual booleans would make sense.

@mbalmer
Copy link
Collaborator

mbalmer commented Dec 21, 2014

Am 21.12.2014 um 14:41 schrieb daurnimator notifications@github.com:

Thankyou.

One other API changing modification to make is around return values. The are functions that return 0 or 1, or -1 and 0. Using actual booleans would make sense.

Yes, let me review those. At the very least, it should be consistent...

@daurnimator daurnimator mentioned this pull request Jan 12, 2015
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