I'm getting error ORA-01722: invalid number with following query:
insert into foo (id, some_number) values('id_01', '8.9');
What I've found so far:
I can run the query if I remove single quotes, like:
insert into foo (id, some_number) values('id_01', 8.9);
Or if I change . to , like:
insert into foo (id, some_number) values('id_01', '8,9');
I'm using Oracle database.
Funny thing: I'm located in Spain, where decimal numbers are written with , instead of . Another developer in my team, not located in Spain can insert those values with the first query (with single quotes and .) which leads me to think this might be due to some system properties. My computer language is English, macOS Monterey 12.5.1
TABLE: FOO
Columns
NAME DATA TYPE NULL DEFAULT COMMENTS
*ID VARCHAR2(20 BYTE) No
SOME_NUMBER NUMBER(3,1) Yes