pike.git / lib / modules / Sql.pmod / mysql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:1:   /* -  * $Id: mysql.pike,v 1.29 2008/11/26 01:02:57 mast Exp $ +  * $Id: mysql.pike,v 1.30 2010/01/04 17:18:18 mast Exp $    *    * Glue for the Mysql-module    */      //! Implements the glue needed to access the Mysql-module from the generic   //! SQL module.      #pike __REAL_VERSION__      #if constant(Mysql.mysql)
pike.git/lib/modules/Sql.pmod/mysql.pike:402:    }    if (sizeof(suffix) == end+1) break;    if (suffix[end+1] == quote[0]) {    // Quote quoted by doubling.    start = end+2;    continue;    }    break;    }    +  if (end < 0) +  // The query ends in a quoted string. We pretend it continues to +  // the end and let MySQL complain later. +  end = sizeof (suffix); +    #define IS_IDENTIFIER_CHAR(chr) (Unicode.is_wordchar (chr) || \    (<'_', '$'>)[chr])       int intpos = -1;       // Optimize the use of _binary.    if (has_suffix (prefix, "_binary"))    intpos = sizeof (prefix) - sizeof ("_binary");    else if (has_suffix (prefix, "_binary "))    intpos = sizeof (prefix) - sizeof ("_binary ");