Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
3ba93402
Commit
3ba93402
authored
5 years ago
by
Johannes Hörmann
Browse files
Options
Downloads
Patches
Plain Diff
tests for sql builder and
parent
c3fbfd74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entity/Person_entity/entityfields/campaignactiongroup/children/sqltests/onActionProcess.js
+2
-2
2 additions, 2 deletions
.../campaignactiongroup/children/sqltests/onActionProcess.js
with
2 additions
and
2 deletions
entity/Person_entity/entityfields/campaignactiongroup/children/sqltests/onActionProcess.js
+
2
−
2
View file @
3ba93402
...
...
@@ -6,7 +6,7 @@ import("UnitTest_lib");
var
andTests
=
[
// First the tests with only the first parameter
[
"
plain text-condition
"
,
function
(
pTester
)
{
var
testSql
=
"
PERSON.FIRSTNAME = 'Admin'
"
;
var
testSql
=
"
(
PERSON.FIRSTNAME = 'Admin'
)
"
;
var
actual
=
new
SqlBuilder
()
.
and
(
testSql
)
...
...
@@ -17,7 +17,7 @@ var andTests = [
[
"
prepared statement
"
,
function
(
pTester
)
{
var
testPrepared
=
[
"
PERSON.FIRSTNAME = ?
"
,
[[
"
Admin
"
,
SQLTYPES
.
CHAR
]]];
var
expected
=
"
( PERSON.FIRSTNAME = 'Admin'
)
"
;
var
expected
=
"
( PERSON.FIRSTNAME = 'Admin' )
"
;
var
actual
=
new
SqlBuilder
()
.
and
(
testPrepared
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment