spec/etc/db/postgres.txt
2025-06-02 16:16:51 +03:00

37 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create table if not exists: не заменяет декларацию... затупил, не догадался
drop table if exists;
14:04 17.04.2023
ERROR: operator does not exist: uuid = character varying
Использовать для POSTGRESQL UUID: CF GUID+CF_SQL_OTHER
Ошибка при записи в базу данных. ERROR: column "is_payg" is of type bit but expression is of type boolean Подсказка: You will need to rewrite or cast the expression. Позиция: 723 То же самое работает для abstract_service_param_class.cfm ???
Очень странная разница: в abstract_service_param_class.cfm числа в d возвращаются как числа, а в tariff как строки
Ошибка: в БД нужно boolean, а в форме bit (транслируется в cf_sql_bit)
Теперь проблема с датой - добавил формат, ок. timestamp для Postgre работает
Message ERROR: invalid input syntax for type uuid: ""
Где: unnamed portal parameter $1 = ''
SQL select count(*) as cnt
from service_tariff
where 1=1
AND service_tariff_guid=
DatabaseName PostgreSQL
DatabaseVersion 15.1
DriverName PostgreSQL JDBC Driver
DriverVersion 42.6.0
Datasource svc
Stacktrace The Error Occurred in
D:\wwwroot\svc3\lib\data\bean.cfm: line 94
- и как это работает для INT? ответ: <cfif !keyInvalid> (а у нас other... когда был idstam, все было однозначно, но с Postgre почему-то idstamp не работает - "Использовать для POSTGRESQL UUID: CF GUID+CF_SQL_OTHER" - вероятно, надо сделать свои типы и маппинг чуть сложнее, чем cf_sql_#type#)
ошибка в dispatch_detail.cfm, рассчитанном на целочисленный id
для idstamp
ERROR: operator does not exist: uuid = character
Подсказка: No operator matches the given name and argument types. You might need to add explicit type casts.
Позиция: 96
для other
ERROR: invalid input syntax for type uuid: ""
Где: unnamed portal parameter $1 = ''
Но! в соседнем шаблоне tariff.cfm "other" работает, и в этом раньше работало - разница была в вызове, в одном случае было пустая строка, в другом отсутствовал параметр