From 1a137716b27fd3309b3efd179087a34b3ca23a3f Mon Sep 17 00:00:00 2001
From: Ben Coleman <b.coleman@accelerateddesign.com>
Date: Fri, 3 Aug 2012 15:37:41 -0400
Subject: [PATCH] Fix db_query quoting for Postgres

---
 includes/videojs.admin.inc |    2 +-
 videojs.install            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/videojs.admin.inc b/includes/videojs.admin.inc
index 7e8756c..3a47575 100644
--- a/includes/videojs.admin.inc
+++ b/includes/videojs.admin.inc
@@ -99,7 +99,7 @@ function videojs_settings_form_submit($form, &$form_state) {
 
   // Clean all variables before system_settings_form_submit() creates new ones.
   // This prevents variables for removed content types remaining in the variables table.
-  db_query('DELETE FROM {variable} WHERE name LIKE "videojs_%%"');
+  db_query("DELETE FROM {variable} WHERE name LIKE 'videojs_%%'");
 
   // Store width & height as ints, autoplay as bool
   $v['videojs_height'] = intval($v['videojs_height']);
diff --git a/videojs.install b/videojs.install
index 6a2975b..fd3a795 100644
--- a/videojs.install
+++ b/videojs.install
@@ -37,7 +37,7 @@ function videojs_requirements($phase) {
  * Implementation of hook_uninstall().
  */
 function videojs_uninstall() {
-  db_query('DELETE FROM {variable} WHERE name LIKE "videojs_%%"');
+  db_query("DELETE FROM {variable} WHERE name LIKE 'videojs_%%'");
 }
 
 /**
-- 
1.7.10.msysgit.1

