Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 26, 2010
  1. Bump version to 0.0.8

    authored
Commits on Aug 25, 2010
  1. Remove TODO, move to GitHub issue tracker

    authored
    Remove benchmarks, move to node-mysql-bindings-benchmarks
Commits on Aug 21, 2010
  1. Improve README

    authored
  2. @ssinghi

    add support for async connection to mysql

    ssinghi authored committed
Commits on Aug 20, 2010
  1. Tested with Node version v0.2.0

    authored
Commits on Aug 18, 2010
  1. @ssinghi
Commits on Aug 17, 2010
  1. Bump version to 0.0.7

    authored
  2. @ssinghi

    make async querying work.

    ssinghi authored committed
    From mysql 5.1 documentation:
    
    http://dev.mysql.com/doc/refman/5.1/en/threaded-clients.html
    
    * Two threads can't send a query to the MySQL server at the same time on the same connection. In particular, you have to ensure that between calls to mysql_query() and mysql_store_result() no other thread is using the same connection.
    * Many threads can access different result sets that are retrieved with mysql_store_result().
    
    * If you use mysql_use_result(), you must ensure that no other thread is using the same connection until the result set is closed. However, it really is best for threaded clients that share the same connection to use mysql_store_result()
    
    So, create a pthread mutex around  calls to mysql_real_query. Only support mysql_store_result for async mode.
  3. @ssinghi

    make async querying work.

    ssinghi authored committed
    From mysql 5.1 documentation:
    
    http://dev.mysql.com/doc/refman/5.1/en/threaded-clients.html
    
    * Two threads can't send a query to the MySQL server at the same time on the same connection. In particular, you have to ensure that between calls to mysql_query() and mysql_store_result() no other thread is using the same connection.
    * Many threads can access different result sets that are retrieved with mysql_store_result().
    
    * If you use mysql_use_result(), you must ensure that no other thread is using the same connection until the result set is closed. However, it really is best for threaded clients that share the same connection to use mysql_store_result()
    
    So, create a pthread mutex around  calls to mysql_real_query. Only support mysql_store_result for async mode.
Commits on Aug 16, 2010
  1. @ssinghi

    null is not same as empty string, do correct conversion

    ssinghi authored committed
  2. Change connectError test code, because on my openSUSE error message is:

    authored
    Access denied for user ''@'localhost' to database 'mysql'
Commits on Aug 15, 2010
  1. @mauritslamers
  2. @ssinghi

    use threadsafe mysqlclient

    ssinghi authored committed
  3. @ssinghi

    add destructor/free for mysql result

    ssinghi authored committed
  4. @ssinghi

    fix asynchronous query execution, the space allocated should be query…

    ssinghi authored committed
    … length + 1
  5. @ssinghi

    add a failing async test

    ssinghi authored committed
Commits on Aug 14, 2010
  1. @ssinghi

    allow reconnecting after failed connect.

    ssinghi authored committed
    If connecting fails, then set _conn = NULL so that other commands also fail with not connected error. Also, from mysql documentation: "If you call mysql_sqlstate()  after mysql_real_connect()  fails, mysql_sqlstate() might not return a useful value". We don't need to keep a connection object which has failed.
Commits on Aug 13, 2010
  1. Rewrite tests for async queries

    authored
Something went wrong with that request. Please try again.