Branch: Tag:

2009-08-26

2009-08-26 12:38:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Implemented fetch_json_result for accelerated SQL to JSON conversion.

Rev: lib/modules/Sql.pmod/sql_result.pike:1.14
Rev: lib/modules/Sql.pmod/sql_util.pmod:1.18
Rev: src/modules/Mysql/result.c:1.35

1:   /* -  * $Id: sql_util.pmod,v 1.17 2007/05/03 13:57:35 mast Exp $ +  * $Id: sql_util.pmod,v 1.18 2009/08/26 12:38:55 grubba Exp $    *    * Some SQL utility functions.    * They are kept here to avoid circular references.
138:    }    return row;    } +  +  //! JSON is always utf8 default, do nothing. +  int|string fetch_json_result() +  { +  return master_result->fetch_json_result();    } -  + }      #if constant (Mysql.mysql.HAVE_MYSQL_FIELD_CHARSETNR)