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.32 2006/09/15 14:28:03 mast Exp $ +  * $Id: mysql.pike,v 1.33 2006/11/04 19:06:49 nilsson 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:424:    }       if (got_introducer) {    string s = suffix[..end];    if (String.width (s) > 8) {    string encoding = prefix[intpos..];    if (has_prefix (encoding, "_"))    sscanf (encoding[1..], "%[a-zA-Z0-9]", encoding);    else    encoding = "utf8"; // Gotta be "N". -  s = s[1..sizeof (s) - 2]; +  s = s[1..<1];    if (sizeof (s) > 40) s = sprintf ("%O...", s[..37]);    else s = sprintf ("%O", s);    predef::error ("A string in the query should be %s encoded "    "but it is wide: %s\n", encoding, s);    }    e += s;    } else {    e += encode_fn (suffix[..end]);    }