我使用postgresql版本8.2.22,然后我升级到postgresql 9.1.3并且升级成功完成.
但是现在有些演员阵容不像以前一样!
在Postgres 8.2.22
我运行这两个查询,它们都正常工作:
POSTGRES8222=# select TO_NUMBER('12345678',9999999999.99);
to_number
=========
12345678
(1 row)
POSTGRES8222=# select a ||'$'|| b from test;
?column?
----------
1$abcdef
2$ghijkl
3$3456
(3 rows)
Run Code Online (Sandbox Code Playgroud)
升级到Postgres 9.1.3后
我运行相同的查询,现在他们抛出错误:
select TO_NUMBER('12345678',9999999999.99);
ERROR: function to_number(unknown, numeric) does not exist
LINE 1: select TO_NUMBER('12345678',9999999999.99);
^
HINT: No function matches the given name and argument types. You might
need to add explicit type casts.
EXCEPTION
org.postgresql.util.PSQLException: ERROR: function to_number(numeric, numeric)
does not exist
Hint: No function matches the given name and …Run Code Online (Sandbox Code Playgroud)