Skip to content

Commit

Permalink
Merge pull request #1662 from burncitiesburn/patch-2
Browse files Browse the repository at this point in the history
Update cfqueryparam.json
  • Loading branch information
pfreitag authored Sep 13, 2024
2 parents 7390fcf + 916eeb2 commit 27b068d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/en/cfqueryparam.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@
"code": "<cfquery name=\"news\">\n SELECT id,title,story\n FROM news\n WHERE id IN (<cfqueryparam value=\"#url.idList#\" cfsqltype=\"cf_sql_integer\" list=\"true\">)\n</cfquery>",
"result": ""
},
{
"title": "Using an expressions to controll null values",
"description": "Shows a basic example of using an expression to control whether null is passed to the queryparam",
"code": "<cfquery name=\"test\">\n INSERT into test ( key, value )\n VALUES(\n <cfqueyparam value=\"#key#\" cfsqltype=\"cf_sql_varchar\" null=\"#isNumeric(Key) EQ false#\">\n <cfqueryparam value=\"#value#\" cfsqltype=\"cf_sql_varchar\" null=\"#value EQ ''#\">\n )\n</cfquery>",
"result": "",
"runnable": false
},
{
"title": "cfscript equivalent of cfqueryparam",
"description": "CF11+ script syntax using queryExecute and struct notation",
Expand Down

0 comments on commit 27b068d

Please sign in to comment.