GG
Size: a a a
GG
АХ
SQLSTATE[42601]: Syntax error: 7 ОШИБКА: подзапрос должен вернуть только один столбец\nLINE 1: SELECT (SELECT docs.document_password_owner,\n ^\nQUERY: SELECT (SELECT docs.document_password_owner,\n docs.doctype_id,\n docs.document_id,\n docs.document_date,\n docs.document_number,\n docs.document_description,\n docs.document_owner_name,\n docs.document_owner_user_id,\n docs.document_owner_structure_id,\n docs.document_owner_mailbox_id,\n docs.document_contragent_name,\n docs.document_total_sum,\n docs.contragent_tin,\n docs.owner_tin,\n docs.document_vat_sum,\n docs.confidant_tin,\n docs.document_total_sum_without_vat from documents\n docs where docs.document_id = old.document_id limit 1)\nCONTEXT: функция PL/pgSQL transact_copy_doc(), строка 5, оператор присваивание (SQL: insert into \"transactions\" (\"transaction_owner_mailbox_id\", \"created_at\", \"created_by\", \"transaction_owner_structure_id\", \"transaction_owner_user_id\", \"transaction_owner_status\", \"transaction_operation\", \"departament_id\", \"document_id\") values (070163c4-86a0-4c04-b960-8e236df122b6, 2021-06-24 11:27:32, 9830aced-9f13-4db9-82f4-cd69b6139ca0, 455cc08f-675f-4ee1-abe3-39cce40f2d0a, 9830aced-9f13-4db9-82f4-cd69b6139ca0, new, CreateByOwner, 455cc08f-675f-4ee1-abe3-39cce40f2d0a, 60d425d2d41e06508dff2f9e))
ch
PC
SELECT * FROM (SELECT docs.document_password_owner,\n docs.doctype_id,\n docs.document_id,\n docs.document_date,\n docs.document_number,\n docs.document_description,\n docs.document_owner_name,\n docs.document_owner_user_id,\n docs.document_owner_structure_id,\n docs.document_owner_mailbox_id,\n docs.document_contragent_name,\n docs.document_total_sum,\n docs.contragent_tin,\n docs.owner_tin,\n docs.document_vat_sum,\n docs.confidant_tin,\n docs.document_total_sum_without_vat from documents\n docs where docs.document_id = old.document_id limit 1) t1, не?
АХ
GG
ch
GG
IA
ch
PC
GG
IA
IA
b
РЖ
РЖ
СК
b
b