Permalink
Browse files

correct concatination syntax for calculated property for tests

  • Loading branch information...
1 parent db9c80e commit 1caded830f92a5ecaf256a7351048641321bd4c6 @rip747 rip747 committed Oct 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 wheels/tests/_assets/models/User.cfc
@@ -16,7 +16,11 @@
<cfset validate("validateCalled")>
<cfset validateOnCreate("validateOnCreateCalled")>
<cfset validateOnUpdate("validateOnUpdateCalled")>
- <cfset property(name="fullName", sql="users.firstname + ' ' + users.lastname")>
+ <cfif application.wheels.dataAdapter eq "oracle">
+ <cfset property(name="fullName", sql="users.firstname || ' ' || users.lastname")>
+ <cfelse>
+ <cfset property(name="fullName", sql="users.firstname + ' ' + users.lastname")>
+ </cfif>
</cffunction>
<cffunction name="validateCalled">

0 comments on commit 1caded8

Please sign in to comment.