From 86bf8765fcf2e8d61e62d311f66c078474b1b566 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Wed, 7 Jun 2023 14:54:29 +0200 Subject: [PATCH] Use the correct integer literal for invoice_amount PostgreSQL actually already casts the strings to integers, but best if everything is as it should. --- test/invoice_amount.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/invoice_amount.sql b/test/invoice_amount.sql index a60a0cd..3c12009 100644 --- a/test/invoice_amount.sql +++ b/test/invoice_amount.sql @@ -64,10 +64,10 @@ values (7, 1, 'Contact', 'XX555', '', '777-777-777', 'c@c', '', '', '', '', '', ; insert into invoice (invoice_id, company_id, invoice_number, invoice_date, contact_id, currency_code, payment_method_id) -values ( 8, 1, 'I1', current_date, 7, 'EUR', '111') - , ( 9, 1, 'I2', current_date, 7, 'EUR', '111') - , (10, 1, 'I3', current_date, 7, 'EUR', '111') - , (11, 1, 'I4', current_date, 7, 'EUR', '111') +values ( 8, 1, 'I1', current_date, 7, 'EUR', 111) + , ( 9, 1, 'I2', current_date, 7, 'EUR', 111) + , (10, 1, 'I3', current_date, 7, 'EUR', 111) + , (11, 1, 'I4', current_date, 7, 'EUR', 111) ; insert into invoice_product (invoice_product_id, invoice_id, name, price, quantity, discount_rate)