[Rt-commit] r14019 - rt/3.8/branches/3.8.0-releng/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Fri Jul 11 15:41:32 EDT 2008
Author: ruz
Date: Fri Jul 11 15:41:32 2008
New Revision: 14019
Modified:
rt/3.8/branches/3.8.0-releng/lib/RT/Attachments_Overlay.pm
Log:
* Oracle doesn't like "CLOB != ''" SQL
Modified: rt/3.8/branches/3.8.0-releng/lib/RT/Attachments_Overlay.pm
==============================================================================
--- rt/3.8/branches/3.8.0-releng/lib/RT/Attachments_Overlay.pm (original)
+++ rt/3.8/branches/3.8.0-releng/lib/RT/Attachments_Overlay.pm Fri Jul 11 15:41:32 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