[freeside-commits] freeside/rt/lib/RT Tickets_Overlay.pm,1.4,1.5
Mark Wells
mark at wavetail.420.am
Wed Nov 3 22:57:02 PDT 2010
Update of /home/cvs/cvsroot/freeside/rt/lib/RT
In directory wavetail.420.am:/tmp/cvs-serv27552/rt/lib/RT
Modified Files:
Tickets_Overlay.pm
Log Message:
clean up postgres-isms, RT#10324
Index: Tickets_Overlay.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Tickets_Overlay.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- Tickets_Overlay.pm 23 Jul 2010 22:50:59 -0000 1.4
+++ Tickets_Overlay.pm 4 Nov 2010 05:57:00 -0000 1.5
@@ -1855,7 +1855,13 @@
);
#if there was a Links.RemoteTarget int, this bs wouldn't be necessary
- my $custnum_sql = "CAST(SUBSTR($linkalias.Target,31) AS INTEGER)";
+ my $custnum_sql = "CAST(SUBSTR($linkalias.Target,31) AS ";
+ if ( RT->Config->Get('DatabaseType') eq 'mysql' ) {
+ $custnum_sql .= 'SIGNED INTEGER)';
+ }
+ else {
+ $custnum_sql .= 'INTEGER)';
+ }
if ( $subkey eq 'Number' ) {
More information about the freeside-commits
mailing list