summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB.pm
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-18 12:23:54 +0100
committermkanat%kerio.com <>2005-03-18 12:23:54 +0100
commit026808687250a3e1c2415c1967e1a48abeba217b (patch)
tree097746c95cdaa454e980625bdfc69b6bf4a2d5bc /Bugzilla/DB.pm
parent17844d976d7036582f7b8204bdde7ac2429b1a38 (diff)
downloadbugzilla-026808687250a3e1c2415c1967e1a48abeba217b.tar.gz
bugzilla-026808687250a3e1c2415c1967e1a48abeba217b.tar.xz
Bug 285740: DBD::Pg must have the PG_BYTEA type specified for inserting BLOBs
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=Tomas.Kopal, a=justdave
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 07e23f0e7..5256a5434 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -51,6 +51,16 @@ use Bugzilla::Error;
use Bugzilla::DB::Schema;
use Bugzilla::User;
+#####################################################################
+# Constants
+#####################################################################
+
+use constant BLOB_TYPE => DBI::SQL_BLOB;
+
+#####################################################################
+# Deprecated Functions
+#####################################################################
+
# All this code is backwards compat fu. As such, its a bit ugly. Note the
# circular dependencies on Bugzilla.pm
# This is old cruft which will be removed, so theres not much use in
@@ -787,6 +797,11 @@ constants are required to be subroutines or "use constant" variables.
=over 4
+=item C<BLOB_TYPE>
+
+The C<\%attr> argument that must be passed to bind_param in order to
+correctly escape a C<LONGBLOB> type.
+
=item C<REQUIRED_VERSION>
This is the minimum required version of the database server that the