Permalink
Commits on Dec 18, 2017
  1. Add the conn:encryptPassword() function, available since PostgreSQL 1…

    mbalmer committed Dec 18, 2017
    …0 and
    
    a sample script.
Commits on Dec 17, 2017
  1. Fix conn:escapeByte(), don't return a (wrong) length as 2nd return,

    mbalmer committed Dec 17, 2017
    return nil in case of error.  Add a small example script
Commits on Oct 6, 2017
Commits on Sep 1, 2017
  1. Use metatable names that yield understandable error message (by removing

    mbalmer committed Sep 1, 2017
    the trailing word 'methods').
Commits on Aug 13, 2017
  1. Bump version.

    mbalmer committed Aug 13, 2017
Commits on Aug 12, 2017
  1. - Fix off by one (found by daurnimator, thanks)

    mbalmer committed Aug 12, 2017
    - Define InvalidOid
    - Bump version
Commits on Mar 27, 2017
  1. Add an optional boolean argument to res:copy() to indicate whether to

    mbalmer committed Mar 27, 2017
    convert boolean/integral/numerical types to the corresponding Lua types.
    Use res:copy(true) to convert types.
Commits on Aug 28, 2016
  1. Nicer.

    mbalmer committed Aug 28, 2016
  2. Remove unused variable.

    mbalmer committed Aug 28, 2016
  3. Return nil when a command execution function returns NULL.

    mbalmer committed Aug 28, 2016
    While here, use luaL_setmetatable consistently.
Commits on Aug 13, 2016
Commits on Aug 12, 2016
  1. Fix and simplify stack checking.

    mbalmer committed Aug 12, 2016
    Disallow passing tables as paramters (use table.unpack() instead).
    
    These changes fix occasional crashes when using many parameters in
    functions like execParams().
Commits on Jul 31, 2016
  1. remove obsolete test

    mbalmer committed Jul 31, 2016
Commits on Jul 28, 2016
  1. - whitespace fixes

    mbalmer committed Jul 28, 2016
    - use luaL_checkstack() instead of lua_checkstack()
    - remove an unnecessary test
Commits on Jul 27, 2016
Commits on Jun 12, 2016
  1. Remove old formats.

    mbalmer committed Jun 12, 2016
Commits on May 20, 2016
Commits on May 12, 2016
  1. Fix wording.

    mbalmer committed May 12, 2016
  2. Clarify getCopyData()

    mbalmer committed May 12, 2016
  3. Better wording.

    mbalmer committed May 12, 2016
  4. Revert the resetPool change, it returns a status.

    mbalmer committed May 12, 2016
    Fix a potential memory leak in getCopyData, also use pushlstring.
Commits on May 11, 2016
  1. unescapeBytea does not need a connection object, move the function to…

    mbalmer committed May 11, 2016
    … table
    
    returned by require 'pgsql'.
  2. Remove debug printf.

    mbalmer committed May 11, 2016