Ver código fonte

Fixed a call to stmt.prepare that can occur without previous stmt creation.

mingodad 12 anos atrás
pai
commit
ab7c45da48
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      SquiLu-ourbiz/ourbiz.nut

+ 1 - 1
SquiLu-ourbiz/ourbiz.nut

@@ -2225,7 +2225,7 @@ and ot.id = o.order_type_id]==], order_id));
 			}
 			}
 			//_calc_line.price_over_weight = ?;
 			//_calc_line.price_over_weight = ?;
 
 
-			stmt.prepare(format([==[
+			stmt = db.prepare(format([==[
 select  o.entity_sales_tax_exempt, o.entity_use_sales_tax2,
 select  o.entity_sales_tax_exempt, o.entity_use_sales_tax2,
 	p.weight, p.sales_tax_id
 	p.weight, p.sales_tax_id
 from orders as o, products as p 
 from orders as o, products as p