From a96d8beb41464678ed8f0635359833dbc6bd2eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=B2?= Date: Thu, 28 Aug 2025 09:44:49 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=8B=D1=82=D0=B0=D1=8E=D1=81=D1=8C=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BD=D1=8F=D1=82=D1=8C=20=D0=BA=D0=B0=D0=BA=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B0=D0=B4=D1=82=D1=8C=20=D0=B0=D1=80?= =?UTF-8?q?=D0=B3=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/working_database.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/app/working_database.py b/app/working_database.py index b656f1c..76f19b5 100644 --- a/app/working_database.py +++ b/app/working_database.py @@ -64,25 +64,21 @@ class SimpleDB: with connection.cursor() as cursor: # Узнать сигнатуру процедуры cursor.execute(""" - SELECT - argument_name, - data_type, - in_out, - position, - data_length, - data_precision, - data_scale + SELECT position, argument_name, data_type, in_out FROM all_arguments WHERE object_name = 'P_RK_SEND_JSON_LIST_FACEACC' ORDER BY position """) print("Сигнатура процедуры P_RK_SEND_JSON_LIST_FACEACC:") - print("Pos | Name | Type | Direction | Length") - print("-" * 50) for arg in cursor: - pos, name, dtype, direction, length, precision, scale = arg - print(f"{pos:3d} | {name or 'RETURN':15} | {dtype:15} | {direction:8} | {length or 'N/A':5}") + # Преобразуем все в строки для безопасного вывода + pos_str = str(arg[0]) if arg[0] is not None else "0" + name_str = str(arg[1]) if arg[1] is not None else "RETURN" + type_str = str(arg[2]) if arg[2] is not None else "UNKNOWN" + dir_str = str(arg[3]) if arg[3] is not None else "UNKNOWN" + + print(f"Позиция {pos_str}: {name_str} ({type_str}) - {dir_str}") for id, value in dict_data.items(): if len(value) != 5: