diff --git a/modules/checkout/includes/commerce_checkout.admin.inc b/modules/checkout/includes/commerce_checkout.admin.inc index 002b33d..5d9ba6c 100644 --- a/modules/checkout/includes/commerce_checkout.admin.inc +++ b/modules/checkout/includes/commerce_checkout.admin.inc @@ -119,8 +119,7 @@ function commerce_checkout_builder_form_save_submit($form, &$form_state) { */ function commerce_checkout_builder_form_reset_submit($form, &$form_state) { // Empty the checkout pane table of configuration data. - db_query("TRUNCATE TABLE {commerce_checkout_pane}"); - + db_truncate('commerce_checkout_pane')->execute(); drupal_set_message(t('Checkout pane positions reset.')); } diff --git a/modules/order/commerce_order.install b/modules/order/commerce_order.install index d1a2e70..b75d953 100644 --- a/modules/order/commerce_order.install +++ b/modules/order/commerce_order.install @@ -345,6 +345,6 @@ function commerce_order_update_7102(&$sandbox) { * Truncates the pre-calculated price table. */ function commerce_order_update_7103() { - db_query("TRUNCATE TABLE {commerce_calculated_price}"); + db_truncate('commerce_calculated_price')->execute(); return t('The calculated price table has been cleared. If your site uses product sell price pre-calculation, you will need to recalculate these prices.'); }