|
ошибка to_timestamp
|
|||
---|---|---|---|
#18+
Добрый день. При переходе с версии 9.6 на версию 13 столкнулся с такой ошибкой: Код: plsql 1.
стал выдавать SQL Error [22007]: ОШИБКА: неверное значение "T1" для "HH24" Подробности: Значение должно быть целым числом. Попробовал другие версии - корректно работает в 9.6, 10 и 11 версии , а в 12 и 13 не работает. Кто-нибудь знает - это то что в документации к 12-му релизу написано: Adjust to_timestamp()/to_date() functions to be more forgiving of template mismatches (Artur Zakirov, Alexander Korotkov, Liudmila Mantrova) This new behavior more closely matches the Oracle functions of the same name. ? Можно заставить Postgres понимать разделитель T между датой и временем без изменения формата? ... |
|||
:
Нравится:
Не нравится:
|
|||
08.06.2021, 12:55 |
|
ошибка to_timestamp
|
|||
---|---|---|---|
#18+
knm, Нет нельзя... то что оно раньше работало это явный баг с моей точки зрения. -- Maxim Boguk лучшая поддержка PostgreSQL: dataegret.ru ... |
|||
:
Нравится:
Не нравится:
|
|||
08.06.2021, 14:00 |
|
ошибка to_timestamp
|
|||
---|---|---|---|
#18+
Если я правильно читаю https://www.postgresql.org/docs/current/functions-formatting.html , то должно работать Код: sql 1.
поскольку If FX is specified, a separator in the template string matches exactly one character in the input string. But note that the input string character is not required to be the same as the separator from the template string. For example, to_timestamp('2000/JUN', 'FXYYYY MON') works ... |
|||
:
Нравится:
Не нравится:
|
|||
09.06.2021, 13:56 |
|
|
start [/forum/topic.php?fid=53&fpage=10&tid=1993986]: |
0ms |
get settings: |
10ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
27ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
2ms |
others: | 263ms |
total: | 376ms |
0 / 0 |