Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 14, 2015
  1. @sodabrew

    Merge pull request #642 from takatoshiono/escape-default-internal-enc

    sodabrew authored
    Fix encoding if Mysql2#escape was nothing escaped
  2. @takatoshiono
  3. @takatoshiono
Commits on Jul 13, 2015
  1. @sodabrew
Commits on Jul 10, 2015
  1. @sodabrew

    Merge pull request #636 from sodabrew/stmt_gc_fix

    sodabrew authored
    Statement GC fixes
  2. @sodabrew

    Set stmt->bind_result_done = 0 when freeing the result buffers that w…

    sodabrew authored
    …ere bound to a statement handle
    
    If the statement handle was previously used, and so mysql_stmt_bind_result was
    called, and if that result set and bind buffers were freed, MySQL still thinks
    the result set buffer is available and will prefetch the first result in
    mysql_stmt_execute. This will corrupt or crash the program.
    
    By setting bind_result_done back to 0, we make MySQL think that a result set
    has never been bound to this statement handle before to prevent the prefetch.
    
    Is this a MySQL bug or a problem in the workflow, i.e. should a result buffer
    be allocated and bound once and then never "unbound" from a statement handle?
Commits on Jul 8, 2015
  1. @sodabrew
  2. @sodabrew
Commits on Jun 22, 2015
  1. @sodabrew

    Whitespace

    sodabrew authored
  2. @sodabrew
  3. @sodabrew

    Start the refcount at 1

    sodabrew authored
  4. @sodabrew
  5. @sodabrew

    Keep a reference from the Result to the Statement

    sodabrew authored
    This prevents the GC from getting the Statement first, which would
    call mysql_stmt_close, which calls mysql_stmt_result_free on any
    outstanding results. When the Result object gets GC next, it also
    calls mysql_stmt_result_free and that would crash.
Commits on Jun 11, 2015
  1. @sodabrew

    Merge pull request #634 from tamird/travis-osx-5.5

    sodabrew authored
    Test MySQL 5.5 on OS X on Travis
    Allow interrupt failures with MySQL 5.5 on OS X
    Remove ancient libraries infinite loop from fallback libmysqlclient detection
  2. @tamird
  3. @tamird

    Grammar

    tamird authored
Commits on Jun 10, 2015
  1. @sodabrew
  2. @sodabrew
  3. @sodabrew

    Update to Connector/C 6.1.6

    sodabrew authored
  4. @sodabrew
  5. @sodabrew
  6. @sodabrew
  7. @sodabrew
  8. @sodabrew

    Whitespace

    sodabrew authored
  9. @sodabrew

    Convert StringValuePtr to either RSTRING_PTR or StringValueCStr

    sodabrew authored
    Where a simple nul-terminated C string is required, use StringValueCStr.
    Where a string pointer and length are used, follow the pattern:
    
      Check_Type(str, T_STRING);
      ptr = RSTRING_PTR(str);
      len = RSTRING_LEN(str);
  10. @sodabrew

    Rename macro GetMysql2Result to GET_RESULT

    sodabrew authored
    Switch from DATA_PTR to Data_Get_Struct. This protects against calling
    methods that need the result wrapper on hand-built Mysql2::Result
    objects. They will raise a TypeError instead of segfaulting.
  11. @sodabrew
  12. @ctrochalakis @sodabrew

    Also search for mariadb_config on compile

    ctrochalakis authored sodabrew committed
    libmariadb-client-lgpl-dev in newly released Debian stable (jessie)
    ships `/usr/bin/mariadb_config`.
  13. @sodabrew
  14. @sodabrew
  15. @sodabrew
  16. @sodabrew
  17. @sodabrew
  18. @sodabrew

    Whitespace

    sodabrew authored
Commits on Jun 7, 2015
  1. @sodabrew

    Merge pull request #595 from tamird/misc-cleanup

    sodabrew authored
    Misc cleanup and update specs to RSpec 3
Something went wrong with that request. Please try again.