[Rt-commit] rt branch, 4.2/links_in_validator, updated. rt-3.8.8-256-g517c081

Ruslan Zakirov ruz at bestpractical.com
Mon Mar 7 10:33:40 EST 2011


The branch, 4.2/links_in_validator has been updated
       via  517c0816e73d0cb5d2b1bce52fd4983152cf16c6 (commit)
      from  f429424665ed5d57fdd2c107be373a5c57c2327c (commit)

Summary of changes:
 sbin/rt-validator.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 517c0816e73d0cb5d2b1bce52fd4983152cf16c6
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Mon Mar 7 18:32:42 2011 +0300

    SQLite's concatenation is ||

diff --git a/sbin/rt-validator.in b/sbin/rt-validator.in
index 7d20248..de334c0 100644
--- a/sbin/rt-validator.in
+++ b/sbin/rt-validator.in
@@ -1228,7 +1228,7 @@ sub sql_concat {
     return $_[0] if @_ <= 1;
 
     my $db_type = RT->Config->Get('DatabaseType');
-    if ( $db_type eq 'Pg' ) {
+    if ( $db_type eq 'Pg' || $db_type eq 'SQLite' ) {
         return '('. join( ' || ', @_ ) .')';
     }
     return sql_concat('CONCAT('. join( ', ', splice @_, 0, 2 ).')', @_);

-----------------------------------------------------------------------


More information about the Rt-commit mailing list