From b6f87207a484f1c7675ec451e0c4c2e98ba413fc Mon Sep 17 00:00:00 2001 From: ioguix Date: Wed, 5 Dec 2007 12:05:00 +0000 Subject: [PATCH] use a textarea to insert/edit xml type instead of a small size-limited input tag --- classes/database/Postgres.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 1ae16f6e..562ea679 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -4,7 +4,7 @@ * A class that implements the DB interface for Postgres * Note: This class uses ADODB and returns RecordSets. * - * $Id: Postgres.php,v 1.315 2007/11/30 06:04:43 xzilla Exp $ + * $Id: Postgres.php,v 1.316 2007/12/05 12:05:00 ioguix Exp $ */ // @@@ THOUGHT: What about inherits? ie. use of ONLY??? @@ -302,6 +302,8 @@ class Postgres extends ADODB_base { $value = $this->escapeBytea($value); case 'text': case 'text[]': + case 'xml': + case 'xml[]': $n = substr_count($value, "\n"); $n = $n < 5 ? 5 : $n; $n = $n > 20 ? 20 : $n; -- 2.39.5