From: Christopher Kings-L. <ch...@us...> - 2002-06-13 02:08:49
|
Update of /cvsroot/phppgadmin/phpPgAdmin In directory usw-pr-cvs1:/tmp/cvs-serv17720 Modified Files: tbl_replace.php Log Message: Fixed failure to quote text fields. From Steven Green (gre...@us...) Index: tbl_replace.php =================================================================== RCS file: /cvsroot/phppgadmin/phpPgAdmin/tbl_replace.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** tbl_replace.php 28 May 2002 20:47:29 -0000 1.12 --- tbl_replace.php 13 Jun 2002 02:08:44 -0000 1.13 *************** *** 14,18 **** while (list($key, $val) = each($fields)) { if (!eregi("^'[[:alnum:][:punct:][:cntrl:][:space:]]*'$", $val) && empty($funcs[$key])) { ! if (eregi("char|date|bool|time|inet", $field_type[$key])) { $strValDelim = "'"; } --- 14,18 ---- while (list($key, $val) = each($fields)) { if (!eregi("^'[[:alnum:][:punct:][:cntrl:][:space:]]*'$", $val) && empty($funcs[$key])) { ! if (eregi("char|date|bool|time|inet|text", $field_type[$key])) { $strValDelim = "'"; } *************** *** 44,48 **** // Check to see if there are already single quotes and are not a function if (!eregi("^'[[:alnum:][:punct:][:cntrl:][:space:]]*'$", $val) && empty($funcs[$key])) { ! if (eregi("char|date|bool|time|inet", $field_type[$key])) { $strValDelim = "'"; } --- 44,48 ---- // Check to see if there are already single quotes and are not a function if (!eregi("^'[[:alnum:][:punct:][:cntrl:][:space:]]*'$", $val) && empty($funcs[$key])) { ! if (eregi("char|date|bool|time|inet|text", $field_type[$key])) { $strValDelim = "'"; } |