sql - proc giving mysterious results -


I have a process that someone else has written that the code is like the following:

  If 1 = 0 select cast (zero as ANL), cast (zero as int) as review_ID, end - then there is a real selection statement which is similar Pattern corresponds to  

Now, HP is reading the top selection statement in any way before it is stored when it is stored It executes, even if it should never be called. If I add columns to the actual result query without adding this hidden query as an empty column, then it will not work (in HP Extreme, in SQL Server, the proc is expected as it runs).

Any ideas on how anyone can work it? How can HP pre-write this non-execution code?

I do not know what this code is written in the base but I think this conversation script As the Xstream engine is based in C ++, my first question is on the syntax of the IF statement.

IF 1 = 0 in C if IF 1 == 0 is not the same. The first one determines the example of the statement based on the success of changing the example one is a value of zero, so it will always be true. The latter actually compares two values, which would obviously always be false.

Without knowing more about the situation, I will look at that first.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -