cancel
Showing results for 
Search instead for 
Did you mean: 

Insert into and Invalid numeric constant

Former Member
0 Kudos

Hi all,

i try create table t1

(

f1 fixed(10)

)

and insert -2 into into t1:

insert into t1(f1) values (-2) works fine

insert into t1(f1) values (-(2)) does not work (Error Executing 'insert into t1(f1) values (-(2))' [-3016] (at 28): Invalid numeric constant)

insert into t1(f1) values (-(2+0)) works fine

It's feature or bug?

Best regards,

Lukasz.

MAXDB 7.6.03.07 & Windows Server 2003

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Urrgs, bad bug.

The superfluous bracket cause the trouble. Sorry.

Will be fixed ASAP.

Elke

lbreddemann
Active Contributor
0 Kudos

Hi Lukasz,

this is pretty sure a bug.

SELECT -(f1) FROM T1

works correct.

KR Lars

Former Member
0 Kudos

Lars,

thank you for your reply and opinion.

KR Lukasz.