on 08-08-2014 2:52 PM
Hi,
Below code works fine in 15.4 but fails in 16.
Any comments are greatly appreciated.
Create table test (a numeric(10));
update test set a = convert(numeric(10),'')
---data type conversion is not possible---
Interestingly,
select convert(numeric(10),'') works fine in both versions and gives 0 as the output.
Best
Mustafa
Hi Mustafa,
Which ESD# of 15.4 you tested on ?
The first statement fails in my 15.4 ESD3 and ESD4 tests.
The second one is processed by SA not IQ.
To test actually IQ , add "from iq_dummy" :
select convert(numeric(10),'') from iq_dummy ;
This select query fails as well.
Regards,
Tayeb.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mustafa,
As said, it doesn't work in 15.4 neither for me :
select @@version
Sybase IQ/15.4.0.3038/140226/P/ESD 4/Sun_Sparc/OS 5.10/64bit/2014-02-26 10:23:28
select convert(numeric(10),'') from iq_dummy ;
Could not execute statement.
Data exception - data type conversion is not possible.
-- (dfe_Cast.cxx 918)
SQLCODE=-1001006, ODBC 3 State="HY000"
Same error in IQ16. So, no change behavior here !
Have you a specific setting ?
What is your sp_iqcheckoptions output ?
Regards,
Tayeb.
You probably tested with a specific setting. ESD3 nor 15.4 GA does't accept that conversion :
select @@version
Sybase IQ/15.4.0.3027/130221/P/ESD 3/Enterprise Linux64
select convert(numeric(10),'') from iq_dummy ;
Could not execute statement.
Data exception - data type conversion is not possible.
-- (dfe_Cast.cxx918)
Regards,
Tayeb.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.