From 2d2c47204913efc288426db14f29e407ef87b422 Mon Sep 17 00:00:00 2001 From: chriskl Date: Wed, 4 Jan 2006 02:45:50 +0000 Subject: [PATCH] Show byte[], text[] and character[] as textareas also --- classes/database/Postgres.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index eb5500c3..35948121 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.279 2005/11/04 04:23:16 chriskl Exp $ + * $Id: Postgres.php,v 1.280 2006/01/04 02:45:50 chriskl Exp $ */ // @@@ THOUGHT: What about inherits? ie. use of ONLY??? @@ -295,8 +295,10 @@ class Postgres extends ADODB_base { } break; case 'bytea': + case 'bytea[]': $value = $this->escapeBytea($value); case 'text': + case 'text[]': $n = substr_count($value, "\n"); $n = $n < 5 ? 5 : $n; $n = $n > 20 ? 20 : $n; @@ -305,6 +307,7 @@ class Postgres extends ADODB_base { echo "\n"; break; case 'character': + case 'character[]': $n = substr_count($value, "\n"); $n = $n < 5 ? 5 : $n; $n = $n > 20 ? 20 : $n; -- 2.39.5