summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchriskl2006-01-04 02:47:41 +0000
committerchriskl2006-01-04 02:47:41 +0000
commit021c20c653551d490a0e28c150f6fea430d09a3f (patch)
treea92fc01eeb4e1e38afc759a11b5e310822f7238a
parentab8d02848d3f78aad5a23eae2a1c283f2381f90b (diff)
Backport: Display text[], byte[] and character[] types as textareas
-rw-r--r--HISTORY1
-rwxr-xr-xclasses/database/Postgres.php5
2 files changed, 5 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 24ec5c22..63331f13 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7,6 +7,7 @@ Version 4.0.2
Bugs
* Fix error reporting during SQL script execution
* Fix decorator.inc.php include for open_basedir restricted PHP
+* Display text[], byte[] and character[] types as textareas
Version 4.0.1
-------------
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php
index eb5500c3..7cd98718 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.279.2.1 2006/01/04 02:47:42 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 "</textarea>\n";
break;
case 'character':
+ case 'character[]':
$n = substr_count($value, "\n");
$n = $n < 5 ? 5 : $n;
$n = $n > 20 ? 20 : $n;