pike.git/
lib/
modules/
Sql.pmod/
sql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2006-08-11
2006-08-11 11:08:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>
cd168821d3f6eff5d7b27965e908b9777dfc47c0 (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Don't decode binary fields.
Rev: lib/modules/Sql.pmod/sql_util.pmod:1.15
1:
/*
-
* $Id: sql_util.pmod,v 1.
14
2006/08/
09
13
:
04
:
38
grubba Exp $
+
* $Id: sql_util.pmod,v 1.
15
2006/08/
11
11
:
08
:
44
grubba Exp $
* * Some SQL utility functions. * They are kept here to avoid circular references.
133:
{ int|array(string) row = master_result->fetch_row(); if (!arrayp(row)) return row;
+
array(int|mapping(string:mixed)) field_info = fetch_fields();
foreach(row; int i; string|int val) {
-
if (stringp(val)) {
+
if (stringp(val)
&& field_info[i]->flags &&
+
!field_info[i]->flags->binary
) {
row[i] = utf8_to_string(val); } } return row; } }