Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
532 views
in Technique[技术] by (71.8m points)

entity framework 6 - ora-16550: truncated result: Oracle/EF treats negative sign as an additional precision in numbers

I have an Oracle table column defined as NUMBER(9,6) to store Longitude. So values such as -123.123456 are valid entries. However, I get ora-16550: truncated result when I insert or update it with such value.

I test with 123.123456 and -12.12345 and these values worked. Apparently, the negative sign is being treated as an additional character and causing it to fail.

Here's what I think is happening under the hood.

DECLARE p0 CHAR(9) = '-123.456789'
UPDATE blah 
Boom!!

That negative sign probably caused the truncation. Is there fix?

question from:https://stackoverflow.com/questions/66050958/ora-16550-truncated-result-oracle-ef-treats-negative-sign-as-an-additional-pre

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...