I am executing dual queries using H2(in memory).
But the results do not seem correct.

---------------------------------
***Without bind variables:
---------------------------------
SELECT 1 - '0.1' FROM DUAL
Output=0 [OracleOutput: 0.9]
---------------------------------

---------------------------------
***Using bind variables:
---------------------------------
SELECT 1 - ? FROM DUAL
stmt.setString(1, "0.1");
Output: 0 [OracleOutput: 0.9]

-- tried double
SELECT 1 - ? FROM DUAL
stmt.setDouble(1, 0.1);
Output: 1 [OracleOutput: 0.9]

SELECT (? - (1 -?) * ?) FROM DUAL
set bind variables ["0.95", "1", "0.025"] using setString.
Output: 1 [OracleOutput: 0.95]
---------------------------------

Am I missing something? I am already using "MODE=Oracle" while creating 
connection.

Any help would be much appreciated.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/h2-database/-/wwsLFpgcGnYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to