Branch: Tag:

2009-08-26

2009-08-26 12:38:23 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.20
Rev: lib/modules/Sql.pmod/sql_util.pmod:1.25
Rev: src/modules/Mysql/result.c:1.40

1:   /* -  * $Id: sql_util.pmod,v 1.24 2008/06/30 12:10:32 srb Exp $ +  * $Id: sql_util.pmod,v 1.25 2009/08/26 12:38:22 grubba Exp $    *    * Some SQL utility functions.    * They are kept here to avoid circular references.
141:    }    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)