summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzhang2012-06-04 02:03:12 (EDT)
committer mwu2012-06-04 02:03:12 (EDT)
commit9875a4893d524d6fa470a062677e5fee95505d46 (patch)
tree82c33060ec5f91f1f86639fb3b81b9be096b7452
parent7b3d576287461387cc7e42538c1900a67fe90f8d (diff)
downloadorg.eclipse.birt-9875a4893d524d6fa470a062677e5fee95505d46.zip
org.eclipse.birt-9875a4893d524d6fa470a062677e5fee95505d46.tar.gz
org.eclipse.birt-9875a4893d524d6fa470a062677e5fee95505d46.tar.bz2
like operator doesn't work when both of datasets that are members
of join dataset add dynamic parameter [49907]
-rw-r--r--data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtStr.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtStr.java b/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtStr.java
index 407581c..829e2df 100644
--- a/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtStr.java
+++ b/data/org.eclipse.birt.core.script.function/src/org/eclipse/birt/core/script/function/bre/BirtStr.java
@@ -263,6 +263,9 @@ class BirtStr implements IScriptFunctionExecutor
if( args[0] == null )
return null;
+ if ( args[0] instanceof Integer )
+ return args[0];
+
if( !(args[0] instanceof String) )
throw new IllegalArgumentException( Messages.getString( "error.incorrect.type.function.argument" ) );