Browse Source

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

mingodad 13 years ago
parent
commit
ab7c45da48
1 changed files with 1 additions and 1 deletions
  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 = ?;
 
-			stmt.prepare(format([==[
+			stmt = db.prepare(format([==[
 select  o.entity_sales_tax_exempt, o.entity_use_sales_tax2,
 	p.weight, p.sales_tax_id
 from orders as o, products as p