The Curious Case of the Vanishing Parameter

G'day
I have this <cfquery>:
<cfquery>
select col1, col2, col3, col4, col5
from myTable
where col1 in (<cfqueryparam value="#var1#"
cfsqltype="cf_sql_varchar"
list="Yes">)
and col2 = <cfqueryparam value="#var2#"
cfsqltype="cf_sql_varchar">
and col3 in (<cfqueryparam value="#var3#"
cfsqltype="cf_sql_varchar"
list="Yes">)
and col4 in (<cfqueryparam value="#var4#"
cfsqltype="cf_sql_varchar"
list="Yes">)
and col5 = <cfqueryparam value="#var5#"
cfsqltype="cf_sql_varchar">
and col6 = <cfqueryparam value="#var6#"
cfsqltype="cf_sql_numeric">
<cfquery>
On one of our servers (sadly, the production one), this is
erroring when
var1 is an empty string (which is a valid situation to
occur). Rather
curiously, the SQL being spat out by the error message is
this:
select col1, col2, col3, col4, col5
from myTable
where col1 in () <---- note this
and col2 = (param 1)
and col3 in ( (param 2) )
and col4 in ( (param 3) )
and col5 = (param 4)
and col6 = (param 5)
Note how the first param is *completely gone*. The SQL should
simply be
passing through the empty string as the parameter, but the
parameter
"anchor" should still be there. Indeed this is exactly what
happens on my
local PC, and on our shared dev environment.
Unfortunately the erroring server is not so easy for me to
access due to a
new "non-invasive" policy the client has, so it's going to be
tricky for me
to experiment by way of trying to work out "WTF?".
Has anyone encountered this sort of thing, and know what I
should be
looking to do to sort it out?
Adam

> happens to me from time to time and always crashes the
query (I think). I
> simply cope with by changing this:
> where col1 in (<cfqueryparam value="#var1#"
cfsqltype="cf_sql_varchar"
> list="Yes">)
> to something like this:
> where col1 in (<cfqueryparam
value="NoSuchValue,#var1#"
> cfsqltype="cf_sql_varchar"
> list="Yes">)
Cheers for the suggestion, but you misunderstand my question.
I'm not
asking for advice how to mask the problem - that's easy
enough - I'm asking
what's *causing* the problem.
Adam

Similar Messages

  • HP Print Queue: The Curious Case of the Disappearing Files

    Hey all,
    Has anyone encountered this problem, and if so, how did you fix it?
    My Illustrator CS5 docs go into the print queue and disappear without printing.
    It happens with both of the printers here at work that I'm connected to: an HP Color LaserJet CM6040 MFP and an HP Color LaserJet 5500 dtn. I just ran into this problem today at work, so I haven't yet troubleshooted (troubleshot?) with my HP printers at home (although I wouldn't be surprised to see the same behavior).
    On my MBP I'm running OS 10.6.4 (just updated from 10.5.8 over the weekend), Illustrator CS5. Other kinds of files print normally: Word, Entourage, Illustrator CS4, InDesign and Photoshop CS5, Acrobat Pro 9.
    I'm at a loss as to what to do next. Any advice to help me solve this problem will be appreciated.
    Thanks,
    D

    Same problem, no fix yet.
    I have the same symptoms with my networked HP LaserJet 4100DTN, trying to print from my Macbook Pro running 10.5.8. I think I narrowed it down to an Adobe problem. A PDF open in Adobe Reader will give me a problem, but print the same thing from Preview, and it prints okay.
    Even though the job disappears from the queue when printing from Adobe, the system console shows it completing okay:
    I [16/Aug/2010:13:11:26 -0400] [Job 2] Adding start banner page "none".
    I [16/Aug/2010:13:11:26 -0400] [Job 2] Adding end banner page "none".
    I [16/Aug/2010:13:11:26 -0400] [Job 2] File of type application/postscript queued by "chris".
    I [16/Aug/2010:13:11:26 -0400] [Job 2] Queued on "HPLaserJet_4100DTN" by "chris".
    I [16/Aug/2010:13:11:26 -0400] [Job 2] Started filter /usr/libexec/cups/filter/pstops (PID 418)
    I [16/Aug/2010:13:11:26 -0400] [Job 2] Started filter /Library/Printers/hp/filter/hpPostProcessing.bundle/Contents/MacOS/hpPostProces sing (PID 419)
    I [16/Aug/2010:13:11:26 -0400] [Job 2] Started backend /usr/libexec/cups/backend/pap (PID 420)
    I [16/Aug/2010:13:11:35 -0400] [Job 2] Completed successfully.

  • The curious case of the disappearing Blue Cells (and other things) in I.P.

    Hello everyone!
    Lately, I have noticed a strange occurrence in the BI-IP functionality in one of the systems that I work on.  No matter how we set the system, we can never make input-ready capabilities return for normal use.  That is, we can not seem to make the blue cells return in the query!
    Since we can no longer male the input capability return, we also cannot Save the data in the queries.  This is extremely odd, as I have never encountered anything of the sort.
    Whatu2019s more, we constantly get the same message that occur again and again:  u201CThis is a sample.u201D
    Can experts from our community share their thoughts and inputs on this strange occurrence about the missing blue cells and this strange message.
    Iu2019m pretty certain that there are some things that are amiss.  Perhaps someone can direct me to the right course of action.  Is there something that we should set or configure further?
    Thank you very much everyone!  Cheers!
    Philips

    -

  • The Curious Case of the Cursed User Account

    I'm having a strange problem with a 4.5 year old MacBook Pro recently upgraded to Mavericks.  I recently got a new laptop and I tried a couple programs aimed at cloud- or non-cloud-based syncing between them (box.com and bittorrent sync).  On the old computer, these programs failed to install or launch, but when I created a second user account and ran them from there, they both worked fine.  I repaired all disk permissions, and I even repaired user folder permissions using the repair utilities boot option.  Can you think of any reason why my original user account would be conflicting with these programs?  Or anything that might resolve this problem?  Thanks a lot.

    -

  • The curious case of the missing airplay icon

    Hello everyone,
    last night I noticed that the airplay icon was missing on my iPad. I didn't show up in videos, music or youtube.
    When I turned on my iMac I saw that the icon was also missing in iTunes. The only thing I did yesterday was to connect my iPad to my iMac to sync iTunes.
    I didn't do anything else really. That's why I figured it might be a good idea to update iTunes. Everything else is pretty much up to date and works fine. Also checked my router and wifi settings and couldn't detect anything out of the ordinary. Basically did everything people advised on the web. Resetting AppleTV didn't help either.
    So right now I cannot mirror anything via AppleTV because the airplay symbol is missing on my iOS device as well as on my Mac. You probably know how much that s****. Does anyone have the same issues with airplay? Can anyone help me? I would really appreciate it!
    Take care!

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Restart your mobile device.

  • The curious case of the phantom network

    In my never ending efforts to resolve my problem where World of Warcraft crases my macbook pro, I took the suggestion of a Blizzard Rep and disabled the wireless feature of my router.
    After Disabling "Wireless SSID Broadcast" on my routers local webpage, I confirmed that the transmission was indeed off by searching for the name of my router in system preferences.
    I just walked into my house and to my surprise my iPhone is on Wi-fi instead of staying on 3G when no wi-fi is present. I checked to see if it was picking up some unlocked router but lo and behold it was MY router.
    I went back into the router and confirmed that wireless transmission was disabled. And as before, my Macbook Pro can't locate it either. Why in the world is my iPhone on a signal which I had disabled and that no other computer (including my roommates) can locate except for the iPhone?

    There may be some terminology confusion. There are 2 settings in the wireless router -
    Turn off wireless
    Turn off SSID broadcast
    Turning off the SSID broadcast does not disable wireless. Not all wireless routers have a setting to disable the wireless aspect. If you don't want it, then get a router without wireless.
    I am not sure what this has to do with your WoW connection at all, but if the desktop is not using the wireless, why can't the iPhone? You could always set a password and enable WPA, but that won't turn off wireless.
    One last thing, if your router does actually have a switch to turn off the wireless transceiver, maybe your iphone is connected to a neighbor with the same SSID? You could always change the SSID, that would also stop the iPhone from associating with the router, but Encryption is the best way to keep everyone off the wireless link.

  • Will the iPhone case affects the camera and quality of photos?

    I really want to know if the case in the iPhones might affect the quality of the photo. Thus, what is the best case that suits best for the iPhone 5s?

    no they will not its about how you take photo and sometimes low lighting can also be the problem andd theres really no best case but my oppion is the best cases are the thick rubber cases so it will stick to your pants if your lets say sitting down and the thickness will add protection to falls

  • How can replace the aluminum case of the mac book air and how much would cost?

    How can I replace a mac book air aluminum case and how much would it cost?

    The entire case, meaning the back, front, and display enclosure? As much as a new MBA.

  • The back case of the ipod

    ok so i was given a used ipod nano and i was cleeaning it off and it looks liike the back cover is semi coming off. Is there a way to take it off and re put it on??? If so please let me kno

    Most likely, the Clips that hold the back case to the Ipod Broke in some places. TO take it off u can just use a spudger or if ur brave enough a flathead screwdriver.
    http://www.ifixit.com/Guide/iPod/iPod-Nano-1st-Gen-/Rear-Panel/97/1/

  • How to execute a VI such that the false case of the VI should not work in each iteration

    I 'am posting One vI. In this if I put a while loop, I don't need the false case of the case loop to iterate. When I press the button on, the true case should execute. This is my interntion can you please help me
    Attachments:
    sequence post-case for selection.vi ‏25 KB

    Your VI has 5 case structures, which one are you talking about?
    There is no while loop, please explain what you mean. Where do you want to place one?
    I don't know what a "case loop" is. Can you explain?
    Again, you have 5 buttons. Which one do you press?
    One big problem is that your Visa resource is not wired across some of the cases, thus losing it for the remainder of the code.
    Please explain what the code is supposed to do, how it should be operated, and what you expect to happen. Thanks!
    LabVIEW Champion . Do more with less code and in less time .

  • Does the 5s use the same case as the 5?

    Does anyone know if the 5s uses the same cases as the 5?  Just trying to get a head start.:-}

    The 5 and the 5S have essentially the same physical configurations in termns of size, so yes, in most instances a case designed for the 5 should work on the 5s.

  • Will the old cases fit the ipod touch 5 generation?

    if someone could tell me if the old cases fit the new ipod touch i would be very grateful!!

    No. The 5G is taller than previous iPods.
    iPod touch 5g cases: Apple Support Communities
    5th Generation iPod touch cases / accessories | Jeffs iWeb Blog

  • The curious case of Infinity 1 and high usage - a ...

    Please help! My Mum recently took out the 20GB Infinity 1 package, along with a new HH5. Since then her  broadband usage has gone through the roof - previously using around 1-2 GB per month - now its around 60-70GB or more. They confirmed that HER usage was very low although there were other devices on the hub (even though BT changed the wireless key around 4 weeks earlier) – nobody was given the new key. Last week BT advised we change the wireless key AND       the hub password - we have done both. However, since then there has been another 17GB of usage. She has been charged for exceeding her limit, even though she is not using the broadband. Nobody else is either - its impossible – all devices have been barred (or limited) through the hub. I can only think BT has a data reading error. No other devices are listed. She does not stream videos (or do anything at all really!) on her one device. Her laptop says her usage for the last 60 days is 1.83GB. Please help, its driving me nuts!!
    Solved!
    Go to Solution.

    hi
    that does sound like a lot.
    do you have sky on demand connected or another tv package that you can stream via your broadband.
    even if you did it would still need a lot of viewing as a hd movie might be 1.5gb
    is this the usage monitor you are using https://www.bt.com/appsauth/genericlogin.do?TYPE=33554433&REALMOID=06-97c7b65c-4070-10cb-a9e1-83aaa3...
    edit:
    just a thought.
    what computer operating system have you got loaded on any computer in the house.
    reason i ask is we had problems with a desktop at work last week. it was running xp and had a 256gb hard drive and when i tried a defrag it said 253gb was used and showed in red.
    after digging around it turned out to be a corrupt windows update that continuosly kept reloading while the computer was on.

  • The Curious Case of Purloined Preferences

    Hi All ~ Serached 30 pages and didn't find this topic. Since I've gotten this iMac (with Safari 4.02) and I go to Menu Bar > Safari > Preferences to change said Preferences, the ONLY window that pops up is the Auto Fill window. No tabs of any kind, no additional options, no Security, nada. Where are my Preferences? Do I have to re-install? I see there's an option to "Reset Safari" but none of those sound like they're what I want.
    Thanks for the help!

    Hi,
    That's usually caused by a corrupt preferences file. Try quitting Safari completely (Safari menu > Quit) and then move this file to your Desktop:
    Hard drive > Users > Your Username > Library > Preferences > com.apple.Safari.plist
    Restart Safari and check the Preferences window again. If that does the trick, feel free to remove the file you placed on the Desktop.
    Edit: Or, if you can see it in the Preferences window, click the pill shaped icon on the top right hand corner.

  • The Strange Case of the Empty Folder

    For several days, I have been chasing gremlins, some of my own making. But this one is different.
    Suddenly, when choosing a filter that requires time to load the thumb preview, I found it very slow, but even more to the point, I lost control of the curser. It became very small, not even an arrow and jumped around the screen, if it moved at all. The preview load was taking forever, so I tried to dump it. No dice. I had to use kill Process, if I could even get there.
    So  gremlins are now extending to the video card, right? Maybe too much ram to PS. Nope.
    Anyway, after a lot of mucking around with this or that, it occurred to me that the Hard Drive light didn't work while all this is going on. Not writing to Scratch? Let's look. Yep, scratch has data. So I opened it and found two files, one the PS file and the other some strange temp file with a long string of numbers. Properties said -0- data.
    After some deliberation, I decided to exit PS and delete the strange file. I reopened PS and voila! All is well! Smooth fast preview thumbs, cursor runs, I could exit the filter no problems.
    So, I guess the moral here is if strange things are happening, check scratch! Even an empty one seems anathema to PS.
    Hmmm, maybe it was of my own making. Who or what put it there?
    Curious people want to know.

    Thank you for the detailed "how to".  Much appreciated!
    Hudechrome wrote:
    Generate a shortcut using Ctrl-Alt-Shift+B
    Note:  Doing so produced the message "Alt+Shift+Ctrl+B is already in use and will be removed from Image > Adjustments > Black & White if accepted."  I chose [Accept and Go To Conflict], and left the Black & White feature with no shortcut.
    I initially generated a 16000 x 11000 pixel file, RGB Color, 8 bit, containing White.
    Running the filter via the 4 key shortcut popped up a Progress dialog that ran for a minute or so.  All the while cursor motion was completely smooth.  Task Manager showed about 70% processor utilization across the 8 cores.
    The cursor would change to an arrow while over the dialog, then to the spinning wheel when off it.
    Once the operation completed, the dialog disappeared and the cursor returned to whatever tool I had selected (zoom, move, etc.) and was smooth and normal.
    I tried it several times, with 8 bits/channel and 16 bis/channel images, even with images much larger than 500 MB.  With larger images in 16 bits/channel mode I did see some slight jumpiness in the cursor motion while the Progress bar was up, but only very slight.
    It appears that the thread in Photoshop that reloads the cursor is a bit delayed in running by the app being busy processing the long operation on the large image.  Cursor motion was normal and smooth in all other apps and music I was playing through Media Player was not interrupted.  Task Manager again showed about 70% processor utilization across the 8 cores.
    And there were no problems whatsoever after the operation had completed.
    I'm thinking you may have a glitch in your nVidia display driver having something to do with reloading cursors from within your app.
    Regarding the button changing captions from Cancel to Reset, I did not ever see that in the testing above...  However, it's a known feature that many Photoshop dialogs with a [Cancel] button will change it to [Reset] instead if the Alt key is held down.  If Photoshop is switched away from via the Alt-Tab key combination, then it will stick that way until Photoshop is again made active. An easy way to demonstrate this is to go into Edit - Preferences - any subcategory, then press Alt.  Activate another running application via Alt-Tab and move it out of the way (so you can still see the Photoshop dialog) and you'll see it stay that way until you re-activate Photoshop.
    I'm not sure in what way this is related to the glitch you're seeing, if at all, but it does represent another case where I see [Cancel] change to [Reset].
    -Noel
    P.S., It occurs to me to ask:  Have you changed your Cache Tile Size in Edit - Preferences - Performance?

Maybe you are looking for

  • Not able to get the current data from the screen

    Hello All, I have created a table view on a value node.  I edit a field which has a date F4 help or a field DDLB and click SAVE. In the save event handler I am using get first statement in the loop and when I see the contents of the entity it is the

  • Check a UDF of batch number when I create Goods Issue or Delivery

    Hello, I manage my items with batch number and I want to block the creation of all  Goods Issue or Delivery in function of the value of a UDF (created the OIBT table). I think I can achieve this by using the stored procedure SBO_SP_TransactionNotific

  • How to take voltage measurements every minute

    Hi all, I am currently new to labview and i am trying to take timed voltage measurements.  Here is what i am trying to do;  I am using labview 2010 and I am trying to take temperature and humidity readings in sync with each other.  To measure the tem

  • Insufficient privileges - Split Partitioned IOT

    Hi, Can someone help me figuring this out. I'm trying to do a SPLIT PARTITION in a stored procedure. SQL> select * from v$version where rownum = 1; BANNER                                                          Oracle Database 10g Enterprise Edition

  • Apple tv can not connect to library when wired to modem instead of wifi

    My network consists of a Fios router, which I have shut off the wireless on. That is wired into a Nighthawk wireless router. So, there is only 1 wifi network. The Fios router is wired directly into 3 Apple TVs.  I am unable to airplay onto the AppleT