Compare commits
2 Commits
0b255d1b91
...
f0f85cbfcf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0f85cbfcf | ||
|
|
a6ad633570 |
@ -51,7 +51,7 @@ def addTakeOutEvent(site, data, user_id, conn=None):
|
|||||||
cost = float(data['cost'])/int(attendees)
|
cost = float(data['cost'])/int(attendees)
|
||||||
|
|
||||||
receipt_item = database_payloads.ReceiptItemPayload(
|
receipt_item = database_payloads.ReceiptItemPayload(
|
||||||
type = 'custom',
|
type = data['event_type'],
|
||||||
receipt_id=receipt['id'],
|
receipt_id=receipt['id'],
|
||||||
barcode="",
|
barcode="",
|
||||||
item_uuid=None,
|
item_uuid=None,
|
||||||
@ -62,9 +62,10 @@ def addTakeOutEvent(site, data, user_id, conn=None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
receipt_item = meal_planner_database.insertReceiptItemsTuple(site, receipt_item.payload(), conn=conn)
|
receipt_item = meal_planner_database.insertReceiptItemsTuple(site, receipt_item.payload(), conn=conn)
|
||||||
|
trimmed = data['event_shortname'][:32] # TODO: this shortens the name but i should use a a large character limit
|
||||||
event_payload = database_payloads.PlanEventPayload(
|
event_payload = database_payloads.PlanEventPayload(
|
||||||
plan_uuid=None,
|
plan_uuid=None,
|
||||||
event_shortname=str(str(data['event_shortname'])[:32]),
|
event_shortname=str(trimmed),
|
||||||
event_description=data['event_description'],
|
event_description=data['event_description'],
|
||||||
event_date_start=event_date_start,
|
event_date_start=event_date_start,
|
||||||
event_date_end=event_date_end,
|
event_date_end=event_date_end,
|
||||||
|
|||||||
@ -914,315 +914,15 @@
|
|||||||
REFERENCES test2_vendors(id)
|
REFERENCES test2_vendors(id)
|
||||||
);,
|
);,
|
||||||
sql='receipts')
|
sql='receipts')
|
||||||
2025-08-23 15:47:56.216683 --- ERROR --- DatabaseError(message='column "name" of relation "test2_zones" does not existLINE 2: (name, description) ^',
|
2025-09-07 11:23:19.621345 --- ERROR --- DatabaseError(message='value too long for type character varying(32)',
|
||||||
payload=('all', ''),
|
payload=(None, "Take Out: Richie's Brickhouse BBQ Grill", "Take out dining at Take Out: Richie's Brickhouse BBQ Grill", datetime.datetime(2025, 9, 4, 0, 0), datetime.datetime(2025, 9, 4, 0, 0), 1, None, '99c30119-9f01-4199-9e99-63fc692d30eb', 'take out'),
|
||||||
sql='INSERT INTO test2_zones(name, description) VALUES (%s, %s) RETURNING *;')
|
sql='INSERT INTO main_plan_events(plan_uuid, event_shortname, event_description, event_date_start, event_date_end, created_by, recipe_uuid, receipt_uuid, event_type) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING *;')
|
||||||
2025-08-23 15:49:56.096165 --- ERROR --- DatabaseError(message='column "name" of relation "test2_zones" does not existLINE 2: (name, description) ^',
|
2025-09-07 11:28:43.503622 --- ERROR --- DatabaseError(message='value too long for type character varying(32)',
|
||||||
payload=('kitchen', ''),
|
payload=(None, "Take Out: Richie's Brickhouse BBQ Grill", "Take out dining at Take Out: Richie's Brickhouse BBQ Grill", datetime.datetime(2025, 9, 4, 0, 0), datetime.datetime(2025, 9, 4, 0, 0), 1, None, '688cee70-1ecf-4a9f-b606-0f7b1b3b433d', 'take out'),
|
||||||
sql='INSERT INTO test2_zones(name, description) VALUES (%s, %s) RETURNING *;')
|
sql='INSERT INTO main_plan_events(plan_uuid, event_shortname, event_description, event_date_start, event_date_end, created_by, recipe_uuid, receipt_uuid, event_type) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING *;')
|
||||||
2025-08-23 15:50:05.772975 --- ERROR --- DatabaseError(message=''name'',
|
2025-09-07 11:30:19.938172 --- ERROR --- DatabaseError(message='value too long for type character varying(32)',
|
||||||
payload={'zone_name': 'kitchen', 'zone_description': ''},
|
payload=(None, "Take Out: Richie's Brickhouse BBQ Grill", "Take out dining at Take Out: Richie's Brickhouse BBQ Grill", datetime.datetime(2025, 9, 4, 0, 0), datetime.datetime(2025, 9, 4, 0, 0), 1, None, '55f2ee72-9f99-40e4-b2bc-ca98e031dd77', 'take out'),
|
||||||
sql='INSERT INTO test2_zones(name, description) VALUES (%(name)s, %(description)s) RETURNING *;')
|
sql='INSERT INTO main_plan_events(plan_uuid, event_shortname, event_description, event_date_start, event_date_end, created_by, recipe_uuid, receipt_uuid, event_type) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING *;')
|
||||||
2025-08-23 15:50:43.717729 --- ERROR --- DatabaseError(message=''name'',
|
2025-09-07 11:31:37.389493 --- ERROR --- DatabaseError(message='value too long for type character varying(32)',
|
||||||
payload={'zone_name': 'kitchen', 'zone_description': ''},
|
payload=(None, "Take Out: Richie's Brickhouse BBQ Grill", "Take out dining at Take Out: Richie's Brickhouse BBQ Grill", datetime.datetime(2025, 9, 4, 0, 0), datetime.datetime(2025, 9, 4, 0, 0), 1, None, '08671808-a664-4dbc-8147-8634500364f7', 'take out'),
|
||||||
sql='INSERT INTO test2_zones(zone_name, zone_description) VALUES (%(name)s, %(description)s) RETURNING *;')
|
sql='INSERT INTO main_plan_events(plan_uuid, event_shortname, event_description, event_date_start, event_date_end, created_by, recipe_uuid, receipt_uuid, event_type) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING *;')
|
||||||
2025-08-23 16:09:42.637708 --- ERROR --- DatabaseError(message='relation "logins" does not existLINE 3: SELECT logins.* FROM logins ^',
|
|
||||||
payload=(1,),
|
|
||||||
sql='WITH passed_id AS (SELECT %s AS passed_id), cte_login AS ( SELECT logins.* FROM logins WHERE logins.id = (SELECT passed_id FROM passed_id) ), cte_roles AS ( SELECT roles.*, row_to_json(sites.*) AS site FROM roles LEFT JOIN sites ON sites.id = roles.site_id WHERE roles.id = ANY(SELECT unnest(site_roles) FROM cte_login) )SELECT login.*, (SELECT COALESCE(array_agg(row_to_json(r)), '{}') FROM cte_roles r) AS site_rolesFROM cte_login login;')
|
|
||||||
2025-08-23 16:24:14.236281 --- ERROR --- DatabaseError(message='column "username" named in key does not existLINE 14: UNIQUE(username), ^',
|
|
||||||
payload=CREATE TABLE IF NOT EXISTS users(
|
|
||||||
user_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4() NOT NULL,
|
|
||||||
user_name VARCHAR(255) NOT NULL,
|
|
||||||
user_password VARCHAR(255) DEFAULT NULL,
|
|
||||||
user_email VARCHAR(255) UNIQUE NOT NULL,
|
|
||||||
user_favorites JSONB DEFAULT '{}' NOT NULL,
|
|
||||||
user_sites INTEGER [] DEFAULT '{}' NOT NULL,
|
|
||||||
user_roles INTEGER [] DEFAULT '{}' NOT NULL,
|
|
||||||
user_is_system_admin BOOLEAN DEFAULT FALSE NOT NULL,
|
|
||||||
user_flags JSONB DEFAULT '{}' NOT NULL,
|
|
||||||
user_row_type VARCHAR(50) NOT NULL,
|
|
||||||
user_profile_pic_url VARCHAR(255) NOT NULL,
|
|
||||||
user_login_type VARCHAR(32) NOT NULL,
|
|
||||||
UNIQUE(username),
|
|
||||||
CHECK (email ~* '^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$')
|
|
||||||
);
|
|
||||||
|
|
||||||
,
|
|
||||||
sql='users')
|
|
||||||
2025-08-23 16:24:27.945561 --- ERROR --- DatabaseError(message='function uuid_generate_v4() does not existLINE 2: user_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4() NO... ^HINT: No function matches the given name and argument types. You might need to add explicit type casts.',
|
|
||||||
payload=CREATE TABLE IF NOT EXISTS users(
|
|
||||||
user_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4() NOT NULL,
|
|
||||||
user_name VARCHAR(255) NOT NULL,
|
|
||||||
user_password VARCHAR(255) DEFAULT NULL,
|
|
||||||
user_email VARCHAR(255) UNIQUE NOT NULL,
|
|
||||||
user_favorites JSONB DEFAULT '{}' NOT NULL,
|
|
||||||
user_sites INTEGER [] DEFAULT '{}' NOT NULL,
|
|
||||||
user_roles INTEGER [] DEFAULT '{}' NOT NULL,
|
|
||||||
user_is_system_admin BOOLEAN DEFAULT FALSE NOT NULL,
|
|
||||||
user_flags JSONB DEFAULT '{}' NOT NULL,
|
|
||||||
user_row_type VARCHAR(50) NOT NULL,
|
|
||||||
user_profile_pic_url VARCHAR(255) NOT NULL,
|
|
||||||
user_login_type VARCHAR(32) NOT NULL,
|
|
||||||
UNIQUE(user_name),
|
|
||||||
CHECK (email ~* '^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$')
|
|
||||||
);
|
|
||||||
|
|
||||||
,
|
|
||||||
sql='users')
|
|
||||||
2025-08-23 16:29:01.746393 --- ERROR --- DatabaseError(message='column "email" does not existLINE 15: CHECK (email ~* '^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z... ^',
|
|
||||||
payload=CREATE TABLE IF NOT EXISTS users(
|
|
||||||
user_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4() NOT NULL,
|
|
||||||
user_name VARCHAR(255) NOT NULL,
|
|
||||||
user_password VARCHAR(255) DEFAULT NULL,
|
|
||||||
user_email VARCHAR(255) UNIQUE NOT NULL,
|
|
||||||
user_favorites JSONB DEFAULT '{}' NOT NULL,
|
|
||||||
user_sites INTEGER [] DEFAULT '{}' NOT NULL,
|
|
||||||
user_roles INTEGER [] DEFAULT '{}' NOT NULL,
|
|
||||||
user_is_system_admin BOOLEAN DEFAULT FALSE NOT NULL,
|
|
||||||
user_flags JSONB DEFAULT '{}' NOT NULL,
|
|
||||||
user_row_type VARCHAR(50) NOT NULL,
|
|
||||||
user_profile_pic_url VARCHAR(255) NOT NULL,
|
|
||||||
user_login_type VARCHAR(32) NOT NULL,
|
|
||||||
UNIQUE(user_name),
|
|
||||||
CHECK (email ~* '^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$')
|
|
||||||
);
|
|
||||||
|
|
||||||
,
|
|
||||||
sql='users')
|
|
||||||
2025-08-23 16:37:08.379478 --- ERROR --- DatabaseError(message=''site_created_on'',
|
|
||||||
payload={'site_name': 'test', 'site_description': 'Test Site', 'site_created_by': '1a5f4974-45a4-41c2-951b-d391eb19dbd5', 'site_default_zone_uuid': None, 'site_default_auto_issue_location_uuid': None, 'site_default_primary_location_uuid': None, 'site_flags': '{}', 'creation_date': datetime.datetime(2025, 8, 23, 16, 37, 8, 370249)},
|
|
||||||
sql='INSERT INTO sites(site_name, site_description, site_created_by, site_default_zone_uuid, site_default_auto_issue_location_uuid,site_default_primary_location_uuid, site_created_on, site_flags) VALUES (%(site_name)s, %(site_description)s, %(site_created_by)s, %(site_default_zone_uuid)s, %(site_default_auto_issue_location_uuid)s, %(site_default_primary_location_uuid)s, %(site_created_on)s, %(site_flags)s) RETURNING *;')
|
|
||||||
2025-08-23 16:38:50.635772 --- ERROR --- DatabaseError(message='invalid input syntax for type integer: "00210dd7-44c1-41e0-8272-3583eb85e6fc"LINE 4: VALUES ('test', 'Test Site', '00210dd7-44c1-41e0-8272-3583eb... ^',
|
|
||||||
payload={'site_name': 'test', 'site_description': 'Test Site', 'site_created_by': '00210dd7-44c1-41e0-8272-3583eb85e6fc', 'site_default_zone_uuid': None, 'site_default_auto_issue_location_uuid': None, 'site_default_primary_location_uuid': None, 'site_flags': '{}', 'site_created_on': datetime.datetime(2025, 8, 23, 16, 38, 50, 617486)},
|
|
||||||
sql='INSERT INTO sites(site_name, site_description, site_created_by, site_default_zone_uuid, site_default_auto_issue_location_uuid,site_default_primary_location_uuid, site_created_on, site_flags) VALUES (%(site_name)s, %(site_description)s, %(site_created_by)s, %(site_default_zone_uuid)s, %(site_default_auto_issue_location_uuid)s, %(site_default_primary_location_uuid)s, %(site_created_on)s, %(site_flags)s) RETURNING *;')
|
|
||||||
2025-08-23 17:04:20.162561 --- ERROR --- DatabaseError(message='relation "logins" does not existLINE 1: UPDATE logins SET sites = sites || '5c850d2d-ee69-4ac4-bfd5-... ^',
|
|
||||||
payload={'user_uuid': '50743800-3079-455e-a670-5f7877788dec', 'site_uuid': 'b25fffee-4cef-4709-8715-db530e3c9384', 'role_uuid': '5c850d2d-ee69-4ac4-bfd5-06e7c0975ca9'},
|
|
||||||
sql='UPDATE logins SET sites = sites || %(role_uuid)s, site_roles = site_roles || %(site_uuid)s WHERE user_uuid=%(user_uuid)s RETURNING *;')
|
|
||||||
2025-08-23 17:04:40.004205 --- ERROR --- DatabaseError(message='column "sites" does not existLINE 1: UPDATE users SET sites = sites || '08c400af-3ddc-470f-9c9b-6... ^',
|
|
||||||
payload={'user_uuid': 'c5bd7fa0-1fcb-4191-8a55-bf41fd758526', 'site_uuid': 'bb8e2c49-6ad4-4f94-9046-cf5115719cb5', 'role_uuid': '08c400af-3ddc-470f-9c9b-6bb6d1d1b9f4'},
|
|
||||||
sql='UPDATE users SET sites = sites || %(role_uuid)s, site_roles = site_roles || %(site_uuid)s WHERE user_uuid=%(user_uuid)s RETURNING *;')
|
|
||||||
2025-08-23 17:05:24.720835 --- ERROR --- DatabaseError(message='malformed array literal: "ed4d4296-5b95-4845-80d4-1b9332c948a2"LINE 1: UPDATE users SET user_sites = user_sites || 'ed4d4296-5b95-4... ^DETAIL: Array value must start with "{" or dimension information.',
|
|
||||||
payload={'user_uuid': '9fbc9988-2e58-4495-b7a6-a90bb9163cce', 'site_uuid': 'ed4d4296-5b95-4845-80d4-1b9332c948a2', 'role_uuid': '75d88aad-3631-4f20-b4af-af84fc966a0e'},
|
|
||||||
sql='UPDATE users SET user_sites = user_sites || %(site_uuid)s, user_roles = user_roles || %(role_uuid)s WHERE user_uuid=%(user_uuid)s RETURNING *;')
|
|
||||||
2025-08-23 17:08:46.646044 --- ERROR --- DatabaseError(message='relation "test_sites" does not existLINE 1: UPDATE test_sites SET default_zone = '121010a4-80f2-4e77-954... ^',
|
|
||||||
payload={'key': '9eea0818-071c-47d0-8545-d3fde380a84c', 'update': {'default_zone': '121010a4-80f2-4e77-9542-b5f2e08bca6e', 'default_auto_issue_location': '4c50a4b6-066c-4be2-9cd9-a642d6c022c5', 'default_primary_location': '4c50a4b6-066c-4be2-9cd9-a642d6c022c5'}},
|
|
||||||
sql='UPDATE test_sites SET default_zone = %s, default_auto_issue_location = %s, default_primary_location = %s WHERE site_uuid=%s RETURNING *;')
|
|
||||||
2025-08-23 17:13:28.573831 --- ERROR --- DatabaseError(message='column "default_zone" of relation "sites" does not existLINE 1: UPDATE sites SET default_zone = 'b8c335a8-3813-43ff-857c-548... ^',
|
|
||||||
payload={'key': 'ff81d4f6-a21b-48cf-b2d9-510ca9f0185b', 'update': {'default_zone': 'b8c335a8-3813-43ff-857c-54870f9c8471', 'default_auto_issue_location': '8af88ddc-7c7a-4daa-a797-708aa47080fc', 'default_primary_location': '8af88ddc-7c7a-4daa-a797-708aa47080fc'}},
|
|
||||||
sql='UPDATE sites SET default_zone = %s, default_auto_issue_location = %s, default_primary_location = %s WHERE site_uuid=%s RETURNING *;')
|
|
||||||
2025-08-23 17:17:18.404900 --- ERROR --- DatabaseError(message=''created_by'',
|
|
||||||
payload={'vendor_name': 'None', 'vendor_created_by': '3ba91bc5-277e-4601-abb2-a5b27245a1fd', 'vendor_address': '', 'vendor_phone_number': '', 'creation_date': datetime.datetime(2025, 8, 23, 17, 17, 18, 396948)},
|
|
||||||
sql='INSERT INTO test_vendors(vendor_name, vendor_address, creation_date, created_by, phone_number) VALUES (%(vendor_name)s, %(vendor_address)s, %(creation_date)s, %(created_by)s, %(phone_number)s) RETURNING *;')
|
|
||||||
2025-08-23 17:18:26.766922 --- ERROR --- DatabaseError(message=''vendor_creation_date'',
|
|
||||||
payload={'vendor_name': 'None', 'vendor_created_by': 'd7f2db01-ccef-4318-8b0b-68e53da39c91', 'vendor_address': '', 'vendor_phone_number': '', 'creation_date': datetime.datetime(2025, 8, 23, 17, 18, 26, 756696)},
|
|
||||||
sql='INSERT INTO test_vendors(vendor_name, vendor_address, vendor_creation_date, vendor_created_by, vendor_phone_number) VALUES (%(vendor_name)s, %(vendor_address)s, %(vendor_creation_date)s, %(vendor_created_by)s, %(vendor_phone_number)s) RETURNING *;')
|
|
||||||
2025-08-23 17:18:56.502889 --- ERROR --- DatabaseError(message='column "name" of relation "test_brands" does not existLINE 2: (name) ^',
|
|
||||||
payload={'name': 'None'},
|
|
||||||
sql='INSERT INTO test_brands(name) VALUES (%(name)s) RETURNING *;')
|
|
||||||
2025-08-23 17:32:23.722383 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: ""LINE 1: SELECT * FROM roles WHERE role_site_uuid = ''; ^',
|
|
||||||
payload={'site_uuid': ''},
|
|
||||||
sql='SELECT * FROM roles WHERE role_site_uuid = %(site_uuid)s;')
|
|
||||||
2025-08-23 17:33:03.401456 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: ""LINE 1: SELECT * FROM roles WHERE role_site_uuid = ''; ^',
|
|
||||||
payload={'site_uuid': ''},
|
|
||||||
sql='SELECT * FROM roles WHERE role_site_uuid = %(site_uuid)s;')
|
|
||||||
2025-08-23 17:33:20.694744 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: ""LINE 1: SELECT * FROM roles WHERE role_site_uuid = ''::uuid; ^',
|
|
||||||
payload={'site_uuid': ''},
|
|
||||||
sql='SELECT * FROM roles WHERE role_site_uuid = %(site_uuid)s::uuid;')
|
|
||||||
2025-08-23 17:35:11.954356 --- ERROR --- DatabaseError(message='relation "_roles" does not existLINE 1: WITH deleted_rows AS (DELETE FROM _roles WHERE id IN ('606f8... ^',
|
|
||||||
payload=['606f8ca9-dcbe-4ad2-8af6-931e23a6e191'],
|
|
||||||
sql='WITH deleted_rows AS (DELETE FROM _roles WHERE id IN (%s) RETURNING *) SELECT * FROM deleted_rows;')
|
|
||||||
2025-08-23 17:36:53.465231 --- ERROR --- DatabaseError(message='syntax error at or near ")"LINE 1: ...ed_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNIN... ^',
|
|
||||||
payload=,
|
|
||||||
sql='WITH deleted_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNING *) SELECT * FROM deleted_rows;')
|
|
||||||
2025-08-23 17:37:59.387507 --- ERROR --- DatabaseError(message='syntax error at or near ")"LINE 1: ...ed_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNIN... ^',
|
|
||||||
payload=,
|
|
||||||
sql='WITH deleted_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNING *) SELECT * FROM deleted_rows;')
|
|
||||||
2025-08-23 17:58:01.143255 --- ERROR --- DatabaseError(message='relation "logins" does not existLINE 1: SELECT * FROM logins WHERE id=1; ^',
|
|
||||||
payload=(1,),
|
|
||||||
sql='SELECT * FROM logins WHERE id=%s;')
|
|
||||||
2025-08-23 18:16:06.471922 --- ERROR --- DatabaseError(message='relation "logins" does not existLINE 1: SELECT * FROM logins WHERE id=1; ^',
|
|
||||||
payload=(1,),
|
|
||||||
sql='SELECT * FROM logins WHERE id=%s;')
|
|
||||||
2025-08-23 18:32:51.008106 --- ERROR --- DatabaseError(message=''key'',
|
|
||||||
payload={'user_name': 'jadowyne'},
|
|
||||||
sql='SELECT * FROM users WHERE user_name = %(key)s')
|
|
||||||
2025-08-23 18:51:35.107602 --- ERROR --- DatabaseError(message='relation "_sites" does not existLINE 1: SELECT * FROM _sites WHERE site_uuid = '{'; ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM _sites WHERE site_uuid = %(key)s;')
|
|
||||||
2025-08-23 18:51:53.817104 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{' ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s')
|
|
||||||
2025-08-23 18:54:48.994574 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid')
|
|
||||||
2025-08-23 18:55:26.991072 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid')
|
|
||||||
2025-08-23 18:58:22.144591 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid')
|
|
||||||
2025-08-23 19:00:01.337678 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid')
|
|
||||||
2025-08-23 19:06:14.672815 --- ERROR --- DatabaseError(message='relation "_users" does not existLINE 1: SELECT * FROM _users WHERE user_uuid = '17488a77-e26f-4f1d-b... ^',
|
|
||||||
payload={'key': '17488a77-e26f-4f1d-bb7d-63beb1e83f6c'},
|
|
||||||
sql='SELECT * FROM _users WHERE user_uuid = %(key)s::int;')
|
|
||||||
2025-08-23 19:14:45.195849 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid; ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid;')
|
|
||||||
2025-08-23 19:15:35.522433 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid; ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid;')
|
|
||||||
2025-08-23 19:16:40.684616 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid; ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid;')
|
|
||||||
2025-08-23 19:17:29.407048 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid; ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid;')
|
|
||||||
2025-08-23 19:17:53.262303 --- ERROR --- DatabaseError(message='invalid input syntax for type uuid: "{"LINE 1: SELECT * FROM sites WHERE site_uuid = '{'::uuid; ^',
|
|
||||||
payload={'key': '{'},
|
|
||||||
sql='SELECT * FROM sites WHERE site_uuid = %(key)s::uuid;')
|
|
||||||
2025-08-23 19:26:29.889584 --- ERROR --- DatabaseError(message='column mil.part_id does not existLINE 4: JOIN test_items mi ON mil.part_id = mi.id ^',
|
|
||||||
payload=['', 50, 0],
|
|
||||||
sql='WITH sum_cte AS ( SELECT mi.id, SUM(mil.quantity_on_hand)::FLOAT8 AS total_sum FROM test_item_locations mil JOIN test_items mi ON mil.part_id = mi.id GROUP BY mi.id )SELECT item.id, item.description, item.item_name, sum_cte.total_sum as total_qoh, u.fullnameFROM test_items itemLEFT JOIN sum_cte ON item.id = sum_cte.idLEFT JOIN test_item_info item_info ON item.item_info_id = item_info.idLEFT JOIN units u ON item_info.uom = u.idWHERE item.search_string LIKE '%%' || %s || '%%' AND item.inactive IS falseORDER BY item.id ASCLIMIT %s OFFSET %s;')
|
|
||||||
2025-08-23 21:07:20.957692 --- ERROR --- DatabaseError(message='function genuuid_generate_v4() does not existLINE 2: unit_uuid UUID PRIMARY KEY DEFAULT genuuid_generate_v4()... ^HINT: No function matches the given name and argument types. You might need to add explicit type casts.',
|
|
||||||
payload=CREATE TABLE IF NOT EXISTS units (
|
|
||||||
unit_uuid UUID PRIMARY KEY DEFAULT genuuid_generate_v4(),
|
|
||||||
unit_plural VARCHAR(32) NOT NULL,
|
|
||||||
unit_single VARCHAR(32) NOT NULL,
|
|
||||||
unit_fullname VARCHAR(255) NOT NULL,
|
|
||||||
unit_description TEXT DEFAULT '' NOT NULL,
|
|
||||||
unique(unit_plural),
|
|
||||||
unique(unit_single),
|
|
||||||
unique(unit_fullname)
|
|
||||||
);,
|
|
||||||
sql='units')
|
|
||||||
2025-08-23 22:02:01.201411 --- ERROR --- DatabaseError(message='column items_locations.quantity_on_hand does not existLINE 2: SELECT items.item_uuid, SUM(items_locations.quantity_o... ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item.id ASC'},
|
|
||||||
sql='WITH sum_cte AS ( SELECT items.item_uuid, SUM(items_locations.quantity_on_hand)::FLOAT8 AS total_sum FROM test_item_locations items_locations JOIN test_items items ON items_locations.item_uuid = items.item_uuid GROUP BY items.item_uuid )SELECT items.item_uuid, items.item_description, items.item_name, sum_cte.total_sum as quantity_on_hand, units.fullnameFROM test_items itemsLEFT JOIN sum_cte ON items.item_uuid = sum_cte.item_uuidLEFT JOIN test_item_info item_info ON items.item_uuid = item_info.item_uuidLEFT JOIN units ON item_info.uom = units.unit_uuidWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' AND items.item_is_inactive IS falseORDER BY item.id ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-23 22:03:01.184936 --- ERROR --- DatabaseError(message='column item_info.uom does not existLINE 12: LEFT JOIN units ON item_info.uom = units.unit_uuid ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item.id ASC'},
|
|
||||||
sql='WITH sum_cte AS ( SELECT items.item_uuid, SUM(items_locations.item_quantity_on_hand)::FLOAT8 AS total_sum FROM test_item_locations items_locations JOIN test_items items ON items_locations.item_uuid = items.item_uuid GROUP BY items.item_uuid )SELECT items.item_uuid, items.item_description, items.item_name, sum_cte.total_sum as quantity_on_hand, units.fullnameFROM test_items itemsLEFT JOIN sum_cte ON items.item_uuid = sum_cte.item_uuidLEFT JOIN test_item_info item_info ON items.item_uuid = item_info.item_uuidLEFT JOIN units ON item_info.uom = units.unit_uuidWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' AND items.item_is_inactive IS falseORDER BY item.id ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-23 22:03:15.916404 --- ERROR --- DatabaseError(message='column units.fullname does not existLINE 8: ...item_name, sum_cte.total_sum as quantity_on_hand, units.full... ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item.id ASC'},
|
|
||||||
sql='WITH sum_cte AS ( SELECT items.item_uuid, SUM(items_locations.item_quantity_on_hand)::FLOAT8 AS total_sum FROM test_item_locations items_locations JOIN test_items items ON items_locations.item_uuid = items.item_uuid GROUP BY items.item_uuid )SELECT items.item_uuid, items.item_description, items.item_name, sum_cte.total_sum as quantity_on_hand, units.fullnameFROM test_items itemsLEFT JOIN sum_cte ON items.item_uuid = sum_cte.item_uuidLEFT JOIN test_item_info item_info ON items.item_uuid = item_info.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' AND items.item_is_inactive IS falseORDER BY item.id ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-23 22:03:41.930847 --- ERROR --- DatabaseError(message='column items.item_is_inactive does not existLINE 14: AND items.item_is_inactive IS false ^HINT: Perhaps you meant to reference the column "items.item_inactive".',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item.id ASC'},
|
|
||||||
sql='WITH sum_cte AS ( SELECT items.item_uuid, SUM(items_locations.item_quantity_on_hand)::FLOAT8 AS total_sum FROM test_item_locations items_locations JOIN test_items items ON items_locations.item_uuid = items.item_uuid GROUP BY items.item_uuid )SELECT items.item_uuid, items.item_description, items.item_name, sum_cte.total_sum as quantity_on_hand, units.unit_fullnameFROM test_items itemsLEFT JOIN sum_cte ON items.item_uuid = sum_cte.item_uuidLEFT JOIN test_item_info item_info ON items.item_uuid = item_info.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' AND items.item_is_inactive IS falseORDER BY item.id ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-23 22:04:26.438958 --- ERROR --- DatabaseError(message='missing FROM-clause entry for table "item"LINE 15: ORDER BY item.id ASC ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item.id ASC'},
|
|
||||||
sql='WITH sum_cte AS ( SELECT items.item_uuid, SUM(items_locations.item_quantity_on_hand)::FLOAT8 AS total_sum FROM test_item_locations items_locations JOIN test_items items ON items_locations.item_uuid = items.item_uuid GROUP BY items.item_uuid )SELECT items.item_uuid, items.item_description, items.item_name, sum_cte.total_sum as quantity_on_hand, units.unit_fullnameFROM test_items itemsLEFT JOIN sum_cte ON items.item_uuid = sum_cte.item_uuidLEFT JOIN test_item_info item_info ON items.item_uuid = item_info.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' AND items.item_inactive IS falseORDER BY item.id ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-23 22:05:31.048675 --- ERROR --- DatabaseError(message='missing FROM-clause entry for table "items"LINE 1: SELECT COUNT(*) FROM test_items WHERE items.item_search_stri... ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'items.item_uuid ASC'},
|
|
||||||
sql='WITH sum_cte AS ( SELECT items.item_uuid, SUM(items_locations.item_quantity_on_hand)::FLOAT8 AS total_sum FROM test_item_locations items_locations JOIN test_items items ON items_locations.item_uuid = items.item_uuid GROUP BY items.item_uuid )SELECT items.item_uuid, items.item_description, items.item_name, sum_cte.total_sum as quantity_on_hand, units.unit_fullnameFROM test_items itemsLEFT JOIN sum_cte ON items.item_uuid = sum_cte.item_uuidLEFT JOIN test_item_info item_info ON items.item_uuid = item_info.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' AND items.item_inactive IS falseORDER BY items.item_uuid ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-24 09:32:31.177059 --- ERROR --- DatabaseError(message='syntax error at or near ")"LINE 1: ...ed_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNIN... ^',
|
|
||||||
payload=[],
|
|
||||||
sql='WITH deleted_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNING *) SELECT * FROM deleted_rows;')
|
|
||||||
2025-08-24 09:35:52.897988 --- ERROR --- DatabaseError(message='syntax error at or near ")"LINE 13: ); ^',
|
|
||||||
payload=CREATE TABLE IF NOT EXISTS test_items(
|
|
||||||
item_uuid UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
||||||
item_created_at TIMESTAMP WITH TIME ZONE DEFAULT now() NOT NULL,
|
|
||||||
item_updated_at TIMESTAMP WITH TIME ZONE DEFAULT now() NOT NULL,
|
|
||||||
item_name VARCHAR(255) NOT NULL,
|
|
||||||
item_description TEXT DEFAULT '' NOT NULL,
|
|
||||||
item_tags TEXT [] DEFAULT '{}' NOT NULL,
|
|
||||||
item_links JSONB DEFAULT '{}' NOT NULL,
|
|
||||||
item_brand_uuid UUID DEFAULT NULL,
|
|
||||||
item_category VARCHAR(255) NOT NULL,
|
|
||||||
item_search_string TEXT DEFAULT '' NOT NULL,
|
|
||||||
item_inactive BOOLEAN DEFAULT false NOT NULL,
|
|
||||||
);
|
|
||||||
,
|
|
||||||
sql='items')
|
|
||||||
2025-08-24 10:54:46.217196 --- ERROR --- DatabaseError(message=''barcode'',
|
|
||||||
payload={'item_uuid': 'b97e8d84-b302-4739-8921-58802ffcaafb', 'item_uom': None, 'item_packaging': '', 'item_uom_quantity': 1.0, 'item_cost': 0.0, 'item_safety_stock': 0.0, 'item_lead_time_days': 0.0, 'item_ai_pick': False, 'item_prefixes': '{}'},
|
|
||||||
sql='INSERT INTO test_item_info(barcode, packaging, uom_quantity, uom, cost, safety_stock, lead_time_days, ai_pick, prefixes) VALUES (%(barcode)s, %(packaging)s, %(uom_quantity)s, %(uom)s, %(cost)s, %(safety_stock)s, %(lead_time_days)s, %(ai_pick)s, %(prefixes)s) RETURNING *;')
|
|
||||||
2025-08-24 11:04:44.303675 --- ERROR --- DatabaseError(message=''barcode'',
|
|
||||||
payload={'item_uuid': 'eb84e3cc-9055-4ff0-9a7c-d078e6e8816d', 'item_primary_location': None, 'item_primary_zone': None, 'item_auto_issue_location': None, 'item_auto_issue_zone': None},
|
|
||||||
sql='INSERT INTO test_logistics_info(barcode, primary_location, primary_zone, auto_issue_location, auto_issue_zone) VALUES (%(barcode)s, %(primary_location)s, %(primary_zone)s, %(auto_issue_location)s, %(auto_issue_zone)s) RETURNING *;')
|
|
||||||
2025-08-24 11:15:31.150260 --- ERROR --- DatabaseError(message=''item_uuid'',
|
|
||||||
payload={'item_food_groups': '{}', 'item_ingredients': '{}', 'item_nutrients': '{}', 'item_expires': False, 'item_default_expiration': 0.0},
|
|
||||||
sql='INSERT INTO test_food_info( item_uuid, item_food_groups, item_ingredients, item_nutrients, item_expires, item_default_expiration) VALUES ( %(item_uuid)s, %(item_food_groups)s, %(item_ingredients)s, %(item_nutrients)s, %(item_expires)s, %(item_default_expiration)s) RETURNING *;')
|
|
||||||
2025-08-24 11:17:54.928279 --- ERROR --- DatabaseError(message=''item_uuid'',
|
|
||||||
payload={'item_food_groups': '{}', 'item_ingredients': '{}', 'item_nutrients': '{}', 'item_expires': False, 'item_default_expiration': 0.0},
|
|
||||||
sql='INSERT INTO test_food_info( item_uuid, item_food_groups, item_ingredients, item_nutrients, item_expires, item_default_expiration) VALUES ( %(item_uuid)s, %(item_food_groups)s, %(item_ingredients)s, %(item_nutrients)s, %(item_expires)s, %(item_default_expiration)s) RETURNING *;')
|
|
||||||
2025-08-24 11:30:52.050270 --- ERROR --- DatabaseError(message='invalid input syntax for type integer: "17488a77-e26f-4f1d-bb7d-63beb1e83f6c"LINE 15: '17488a77-e26f-4f1d-bb7d-63beb1e83f6c', ^',
|
|
||||||
payload={'item_uuid': '48c0027e-aafd-44cb-b153-76a2f8516313', 'transaction_created_by': '17488a77-e26f-4f1d-bb7d-63beb1e83f6c', 'transaction_name': 'Item Created', 'transaction_type': 'SYSTEM', 'transaction_quantity': 0.0, 'transaction_description': '', 'transaction_cost': 0.0, 'transaction_data': '{}', 'transaction_created_at': datetime.datetime(2025, 8, 24, 11, 30, 52, 38752)},
|
|
||||||
sql='INSERT INTO test_transactions( item_uuid, transaction_created_by, transaction_name, transaction_type, transaction_created_at, transaction_quantity, transaction_description, transaction_cost, transaction_data) VALUES ( %(item_uuid)s, %(transaction_created_by)s, %(transaction_name)s, %(transaction_type)s, %(transaction_created_at)s, %(transaction_quantity)s, %(transaction_description)s, %(transaction_cost)s, %(transaction_data)s)RETURNING *;')
|
|
||||||
2025-08-24 11:32:18.969254 --- ERROR --- DatabaseError(message='syntax error at or near ")"LINE 1: ...ed_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNIN... ^',
|
|
||||||
payload=[],
|
|
||||||
sql='WITH deleted_rows AS (DELETE FROM roles WHERE role_uuid IN () RETURNING *) SELECT * FROM deleted_rows;')
|
|
||||||
2025-08-24 11:33:06.844922 --- ERROR --- DatabaseError(message='insert or update on table "test_logistics_info" violates foreign key constraint "test_logistics_info_item_primary_location_fkey"DETAIL: Key (item_primary_location)=(a45d40cf-bcb4-46a5-a4e6-a835c63a3dc5) is not present in table "test_locations".',
|
|
||||||
payload={'item_uuid': 'f9b9ebdb-9f24-48c9-ac47-380cae1ecf33', 'item_primary_location': 'a45d40cf-bcb4-46a5-a4e6-a835c63a3dc5', 'item_primary_zone': '6ac2b642-27b1-4622-a6a2-031389b25329', 'item_auto_issue_location': 'a45d40cf-bcb4-46a5-a4e6-a835c63a3dc5', 'item_auto_issue_zone': '6ac2b642-27b1-4622-a6a2-031389b25329'},
|
|
||||||
sql='INSERT INTO test_logistics_info( item_uuid, item_primary_location, item_primary_zone, item_auto_issue_location, item_auto_issue_zone) VALUES ( %(item_uuid)s, %(item_primary_location)s, %(item_primary_zone)s, %(item_auto_issue_location)s, %(item_auto_issue_zone)s) RETURNING *;')
|
|
||||||
2025-08-24 11:37:18.459039 --- ERROR --- DatabaseError(message='duplicate key value violates unique constraint "item_name_unique"DETAIL: Key (item_name)=(test) already exists.',
|
|
||||||
payload={'item_category': 'FOOD', 'item_name': 'test', 'item_description': '', 'item_tags': '{}', 'item_links': '{}', 'item_brand_uuid': None, 'item_search_string': '', 'item_inactive': False, 'item_created_at': datetime.datetime(2025, 8, 24, 11, 37, 18, 449055), 'item_updated_at': datetime.datetime(2025, 8, 24, 11, 37, 18, 449064)},
|
|
||||||
sql='INSERT INTO test_items( item_category, item_name, item_created_at, item_updated_at, item_description, item_tags, item_links, item_brand_uuid, item_search_string, item_inactive ) VALUES( %(item_category)s, %(item_name)s, %(item_created_at)s, %(item_updated_at)s, %(item_description)s, %(item_tags)s, %(item_links)s, %(item_brand_uuid)s, %(item_search_string)s, %(item_inactive)s) RETURNING *;')
|
|
||||||
2025-08-24 17:17:35.777642 --- ERROR --- DatabaseError(message='duplicate key value violates unique constraint "item_name_unique"DETAIL: Key (item_name)=(test) already exists.',
|
|
||||||
payload={'item_category': 'FOOD', 'item_name': 'test', 'item_description': '', 'item_tags': '{}', 'item_links': '{}', 'item_brand_uuid': None, 'item_search_string': '', 'item_inactive': False, 'item_created_at': datetime.datetime(2025, 8, 24, 17, 17, 35, 766067), 'item_updated_at': datetime.datetime(2025, 8, 24, 17, 17, 35, 766077)},
|
|
||||||
sql='INSERT INTO test_items( item_category, item_name, item_created_at, item_updated_at, item_description, item_tags, item_links, item_brand_uuid, item_search_string, item_inactive ) VALUES( %(item_category)s, %(item_name)s, %(item_created_at)s, %(item_updated_at)s, %(item_description)s, %(item_tags)s, %(item_links)s, %(item_brand_uuid)s, %(item_search_string)s, %(item_inactive)s) RETURNING *;')
|
|
||||||
2025-08-24 17:22:46.024851 --- ERROR --- DatabaseError(message='relation "test_vendors" does not exist',
|
|
||||||
payload=CREATE TABLE IF NOT EXISTS test_cost_layers (
|
|
||||||
item_location_uuid UUID REFERENCES test_item_locations(item_location_uuid) ON DELETE SET NULL,
|
|
||||||
layer_aquisition_date TIMESTAMP WITH TIME ZONE DEFAULT now() NOT NULL,
|
|
||||||
layer_quantity FLOAT8 DEFAULT 0.00 NOT NULL,
|
|
||||||
layer_cost FLOAT8 DEFAULT 0.00 NOT NULL,
|
|
||||||
layer_currency_type VARCHAR(16) DEFAULT 'USD' NOT NULL,
|
|
||||||
layer_expires TIMESTAMP DEFAULT NULL,
|
|
||||||
layer_vendor UUID DEFAULT NULL REFERENCES test_vendors(vendor_uuid) ON DELETE SET NULL
|
|
||||||
);,
|
|
||||||
sql='cost_layers')
|
|
||||||
2025-08-24 17:55:34.739333 --- ERROR --- DatabaseError(message='insert or update on table "test_logistics_info" violates foreign key constraint "test_logistics_info_item_primary_location_fkey"DETAIL: Key (item_primary_location)=(708da889-5b4d-46ae-adc5-36e4fe512bc0) is not present in table "test_locations".',
|
|
||||||
payload={'item_uuid': 'b047a727-a710-48bb-a51d-d82b552437ba', 'item_primary_location': '708da889-5b4d-46ae-adc5-36e4fe512bc0', 'item_primary_zone': 'ffba7d9b-de2c-4ec2-8fbf-89169d89e27f', 'item_auto_issue_location': '708da889-5b4d-46ae-adc5-36e4fe512bc0', 'item_auto_issue_zone': 'ffba7d9b-de2c-4ec2-8fbf-89169d89e27f'},
|
|
||||||
sql='INSERT INTO test_logistics_info( item_uuid, item_primary_location, item_primary_zone, item_auto_issue_location, item_auto_issue_zone) VALUES ( %(item_uuid)s, %(item_primary_location)s, %(item_primary_zone)s, %(item_auto_issue_location)s, %(item_auto_issue_zone)s) RETURNING *;')
|
|
||||||
2025-08-24 17:58:42.943646 --- ERROR --- DatabaseError(message='duplicate key value violates unique constraint "test_items_item_name_key"DETAIL: Key (item_name)=(test2) already exists.',
|
|
||||||
payload={'item_category': 'FOOD', 'item_name': 'test2', 'item_description': '', 'item_tags': '{}', 'item_links': '{}', 'item_brand_uuid': None, 'item_search_string': '', 'item_inactive': False, 'item_created_at': datetime.datetime(2025, 8, 24, 17, 58, 42, 933561), 'item_updated_at': datetime.datetime(2025, 8, 24, 17, 58, 42, 933573)},
|
|
||||||
sql='INSERT INTO test_items( item_category, item_name, item_created_at, item_updated_at, item_description, item_tags, item_links, item_brand_uuid, item_search_string, item_inactive ) VALUES( %(item_category)s, %(item_name)s, %(item_created_at)s, %(item_updated_at)s, %(item_description)s, %(item_tags)s, %(item_links)s, %(item_brand_uuid)s, %(item_search_string)s, %(item_inactive)s) RETURNING *;')
|
|
||||||
2025-08-24 19:02:40.720756 --- ERROR --- DatabaseError(message='column item_info.id does not existLINE 2: LEFT JOIN test_item_info item_info ON item_info.id = item.it... ^',
|
|
||||||
payload=('', 50, 0),
|
|
||||||
sql='SELECT item.id, item.barcode, item.item_name, u.id as uom FROM test_items itemLEFT JOIN test_item_info item_info ON item_info.id = item.item_info_idLEFT JOIN units u ON u.id = item_info.uomWHERE item.search_string LIKE '%%' || %s || '%%' ANd item.inactive IS falseLIMIT %s OFFSET %s;')
|
|
||||||
2025-08-24 19:36:38.102904 --- ERROR --- DatabaseError(message='column items.item_info_id does not existLINE 2: ...test_item_info item_info ON item_info.item_uuid = items.item... ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item_name ASC'},
|
|
||||||
sql='SELECT items.item_uuid, items.item_name, u.id as uom FROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_info_idLEFT JOIN units ON units.unit_uuid = item_info.uomWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' ANd items.item_inactive IS falseORDER BY item_name ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-24 19:37:30.354814 --- ERROR --- DatabaseError(message='column items.item_info_id does not existLINE 2: ...test_item_info item_info ON item_info.item_uuid = items.item... ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item_name ASC'},
|
|
||||||
sql='SELECT items.item_uuid, items.item_name, u.id as uom FROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_info_idLEFT JOIN units ON units.unit_uuid = item_info.uomWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' ANd items.item_inactive IS falseORDER BY item_name ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-24 19:38:02.462645 --- ERROR --- DatabaseError(message='column item_info.uom does not existLINE 3: LEFT JOIN units ON units.unit_uuid = item_info.uom ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item_name ASC'},
|
|
||||||
sql='SELECT items.item_uuid, items.item_name, u.id as uom FROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON units.unit_uuid = item_info.uomWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' ANd items.item_inactive IS falseORDER BY item_name ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-24 19:39:04.082053 --- ERROR --- DatabaseError(message='missing FROM-clause entry for table "u"LINE 1: SELECT items.item_uuid, items.item_name, u.id as uom FROM te... ^',
|
|
||||||
payload={'search_string': '', 'limit': 50, 'offset': 0, 'sort_order': 'item_name ASC'},
|
|
||||||
sql='SELECT items.item_uuid, items.item_name, u.id as uom FROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON units.unit_uuid = item_info.item_uomWHERE items.item_search_string LIKE '%%' || %(search_string)s || '%%' ANd items.item_inactive IS falseORDER BY item_name ASCLIMIT %(limit)s OFFSET %(offset)s;')
|
|
||||||
2025-08-24 20:03:07.903773 --- ERROR --- DatabaseError(message='column item_locations.quantity_on_hand does not existLINE 3: SELECT item_locations.quantity_on_hand FROM test... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations AS ( SELECT item_locations.quantity_on_hand FROM test_item_locations item_locations WHERE item_locations = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, (SELECT COALESCE(SUM(ils.quantity_on_hand), 0.00) FROM cte_item_locations ils) AS item_locationsFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);/*I needitem_uuiditem_namequantity on handunit_of_measure_fullnamezoneslocationscost*/')
|
|
||||||
2025-08-24 20:04:09.838089 --- ERROR --- DatabaseError(message='syntax error at or near "SELECT"LINE 9: (SELECT COALESCE(SUM(ils.quantity_on_hand), 0.00) FROM c... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations AS ( SELECT item_locations.quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost (SELECT COALESCE(SUM(ils.quantity_on_hand), 0.00) FROM cte_item_locations ils) AS item_locationsFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-24 20:04:39.166177 --- ERROR --- DatabaseError(message='syntax error at or near "SELECT"LINE 9: (SELECT COALESCE(SUM(ils.qoh), 0.00) FROM cte_item_locat... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations AS ( SELECT item_locations.quantity_on_hand AS qoh FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost (SELECT COALESCE(SUM(ils.qoh), 0.00) FROM cte_item_locations ils) AS item_locationsFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-24 20:04:50.353200 --- ERROR --- DatabaseError(message='syntax error at or near "SELECT"LINE 9: (SELECT COALESCE(SUM(ils.qoh), '0.00') FROM cte_item_loc... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations AS ( SELECT item_locations.quantity_on_hand AS qoh FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost (SELECT COALESCE(SUM(ils.qoh), '0.00') FROM cte_item_locations ils) AS item_locationsFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-24 20:08:55.657999 --- ERROR --- DatabaseError(message='syntax error at or near "SELECT"LINE 10: (SELECT COALESCE(ils.quantity_on_hand, 0.00) FROM cte_it... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations AS ( SELECT SUM(item_locations.quantity_on_hand) AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost (SELECT COALESCE(ils.quantity_on_hand, 0.00) FROM cte_item_locations ils) AS item_quantity_on_handFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-24 20:09:07.438061 --- ERROR --- DatabaseError(message='column item_locations.quantity_on_hand does not existLINE 3: SELECT SUM(item_locations.quantity_on_hand) AS q... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations AS ( SELECT SUM(item_locations.quantity_on_hand) AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost, (SELECT COALESCE(ils.quantity_on_hand, 0.00) FROM cte_item_locations ils) AS item_quantity_on_handFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-24 20:18:14.570378 --- ERROR --- DatabaseError(message='syntax error at or near "SELECT"LINE 8: SELECT ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations_qty AS ( SELECT SUM(item_locations.item_quantity_on_hand) AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) ),SELECT items.item_uuid, items.item_name, item_info.item_cost, (SELECT COALESCE(ilsq.quantity_on_hand, 0.00) FROM cte_item_locations_qty ilsq) AS item_quantity_on_handFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-24 20:46:50.045541 --- ERROR --- DatabaseError(message='syntax error at or near "AS"LINE 8: SELECT * AS quantity_on_hand ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations_qty AS ( SELECT SUM(item_locations.item_quantity_on_hand) AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) ), cte_item_locations AS ( SELECT * AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost, (SELECT COALESCE(ilsq.quantity_on_hand, 0.00) FROM cte_item_locations_qty ilsq) AS item_quantity_on_hand, COALESCE(units.unit_fullname, 'ERROR') AS unit_fullname, (SELECT COALESCE(array_agg(row_to_json(ils)), '{}') FROM cte_item_locations ils) AS item_locationsFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-26 17:02:46.543504 --- ERROR --- DatabaseError(message='relation "log_info" does not existLINE 20: ...primary_zone, log_info.item_primary_location FROM log_info) ... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations_qty AS ( SELECT SUM(item_locations.item_quantity_on_hand) AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) ), cte_item_locations AS ( SELECT * FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost, (SELECT COALESCE(ilsq.quantity_on_hand, 0.00) FROM cte_item_locations_qty ilsq) AS item_quantity_on_hand, COALESCE(units.unit_fullname, 'ERROR') AS unit_fullname, (SELECT COALESCE(array_agg(row_to_json(ils)), '{}') FROM cte_item_locations ils) AS item_locations, (SELECT log_info.item_primary_zone, log_info.item_primary_location FROM log_info) AS logistics_infoFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidLEFT JOIN test_logistics_info log_info ON log_info.item_uuid = items.item_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-26 17:07:28.743050 --- ERROR --- DatabaseError(message='type "row_to_json" does not existLINE 20: (SELECT COALESCE(row_to_json(zones.*) '{}') FROM test_zo... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations_qty AS ( SELECT SUM(item_locations.item_quantity_on_hand) AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) ), cte_item_locations AS ( SELECT * FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost, (SELECT COALESCE(ilsq.quantity_on_hand, 0.00) FROM cte_item_locations_qty ilsq) AS item_quantity_on_hand, COALESCE(units.unit_fullname, 'ERROR') AS unit_fullname, (SELECT COALESCE(array_agg(row_to_json(ils)), '{}') FROM cte_item_locations ils) AS item_locations, (SELECT COALESCE(row_to_json(zones.*) '{}') FROM test_zones zones WHERE zones.zone_uuid = log_info.item_primary_zone), log_info.item_primary_zone AS primary_zone, log_info.item_primary_location AS primary_locationFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidLEFT JOIN test_logistics_info log_info ON log_info.item_uuid = items.item_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
2025-08-26 17:09:06.017514 --- ERROR --- DatabaseError(message='missing FROM-clause entry for table "zones"LINE 21: ...ons.*), '{}') FROM test_locations locations WHERE zones.loca... ^',
|
|
||||||
payload={},
|
|
||||||
sql='WITH parameters AS (SELECT %(item_uuid)s::uuid AS item_uuid), cte_item_locations_qty AS ( SELECT SUM(item_locations.item_quantity_on_hand) AS quantity_on_hand FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) ), cte_item_locations AS ( SELECT * FROM test_item_locations item_locations WHERE item_locations.item_uuid = (SELECT item_uuid FROM parameters) )SELECT items.item_uuid, items.item_name, item_info.item_cost, (SELECT COALESCE(ilsq.quantity_on_hand, 0.00) FROM cte_item_locations_qty ilsq) AS item_quantity_on_hand, COALESCE(units.unit_fullname, 'ERROR') AS unit_fullname, (SELECT COALESCE(array_agg(row_to_json(ils)), '{}') FROM cte_item_locations ils) AS item_locations, (SELECT COALESCE(row_to_json(zones.*), '{}') FROM test_zones zones WHERE zones.zone_uuid = log_info.item_primary_zone) AS primary_zone, (SELECT COALESCE(row_to_json(locations.*), '{}') FROM test_locations locations WHERE zones.location_uuid = log_info.item_primary_location) AS primary_locationFROM test_items itemsLEFT JOIN test_item_info item_info ON item_info.item_uuid = items.item_uuidLEFT JOIN units ON item_info.item_uom = units.unit_uuidLEFT JOIN test_logistics_info log_info ON log_info.item_uuid = items.item_uuidWHERE items.item_uuid = (SELECT item_uuid FROM parameters);')
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user