From cd54b2878ed51ee2393ae298e2191744633acfb2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 10 Dec 2019 00:06:24 +0300 Subject: [PATCH] fix pg orm example --- examples/database/pg/customer.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/database/pg/customer.v b/examples/database/pg/customer.v index b7137670b9..05dd074697 100644 --- a/examples/database/pg/customer.v +++ b/examples/database/pg/customer.v @@ -25,8 +25,8 @@ fn main() { // V syntax can be used to build queries println('----------------------------------------------------------------') - country := 'Bulgaria' - bg_customers := db.select from Customer where country == country && id != 2 + bg_country := 'Bulgaria' + bg_customers := db.select from Customer where country == bg_country && id != 2 for customer in bg_customers { println('$customer.country | $customer.id - $customer.name') }