Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8537953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:01:31+00:00 2026-06-11T11:01:31+00:00

Is it possible to pre-process cfquery commands such that cfqueryparam is wrapped around the

  • 0

Is it possible to pre-process cfquery commands such that cfqueryparam is wrapped around the parameters?

Example:

<cfquery name="local.qry">
SELECT FirstName
FROM Person
WHERE PersonID = #arguments.PersonID#
</cfquery>

Q: Could onRequest pre-process this query to ensure that arguments.PersonID was an integer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:01:32+00:00Added an answer on June 11, 2026 at 11:01 am

    No. Firstly, onRequest() executes at runtime, but which time all your code has been compiled, so it’s not the CFML that’s being executed anyhow. So you’re too late.

    Secondly… why would you be wanting to link a code-writing-time (for lack of a better term) operation to a runtime operation? Code gets written once, then – on even a light-traffic website – gets executed orders of magnitude more frequently than that. So your pre-process operation would be be trying to run on code #ordersOfMagnitude-1# times more often than it would be necessary to do so.

    Let’s step back… what’s the underlying problem that had you head down this path in the first place? It’s probably that issue that needs looking at, not this notion of pre-processing code at runtime (probably raise a different question, or completely revise this one).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to send pre-compressed files that are contained within an EARfile? More
My input is javascript code that I can pre-process.. at some specific point in
Possible Duplicate: Post Increment and Pre Increment concept? I cant understand how the if
Is it possible to develop Silverlight apps to run on Windows Mobile (pre-WP7) devices?
Is there any way I can pre-process a PHP view script without using a
Possible Duplicate: How to parse and process HTML with PHP? I'm not very good
Is it possible to use the NSSpeechRecognizer with an pre-recorded audio file instead of
i wonder if it is possible to pre-configurate Flex Elements on the Server. I
Let us take this example scenario: There exists a really complex function that involves
Possible Duplicate: Django: How to access URL regex parameters inside a middleware class? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.