[Rt-commit] r14021 - rt/3.8/trunk/lib/RT
jesse at bestpractical.com
jesse at bestpractical.com
Fri Jul 11 15:50:49 EDT 2008
Author: jesse
Date: Fri Jul 11 15:50:48 2008
New Revision: 14021
Modified:
rt/3.8/trunk/lib/RT/Attachments_Overlay.pm
Log:
r39709 at 31b (orig r14019): ruz | 2008-07-11 15:41:32 -0400
* Oracle doesn't like "CLOB != ''" SQL
Modified: rt/3.8/trunk/lib/RT/Attachments_Overlay.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Attachments_Overlay.pm (original)
+++ rt/3.8/trunk/lib/RT/Attachments_Overlay.pm Fri Jul 11 15:50:48 2008
@@ -165,12 +165,21 @@
VALUE => 'NULL',
QUOTEVALUE => 0,
);
- $self->Limit(
- ENTRYAGGREGATOR => 'AND',
- FIELD => 'Content',
- OPERATOR => '!=',
- VALUE => '',
- );
+ if ( RT->Config->Get('DatabaseType') ne 'Oracle' ) {
+ $self->Limit(
+ ENTRYAGGREGATOR => 'AND',
+ FIELD => 'Content',
+ OPERATOR => '!=',
+ VALUE => '',
+ );
+ } else {
+ $self->Limit(
+ ENTRYAGGREGATOR => 'AND',
+ FIELD => 'Content',
+ OPERATOR => 'NOT MATCHES',
+ VALUE => '',
+ );
+ }
return;
}
More information about the Rt-commit
mailing list