From e057d1aed25edf6045cfedb7d62e3bec1150cbe5 Mon Sep 17 00:00:00 2001 From: Timothy Boronczyk Date: Fri, 17 Jan 2014 01:24:15 -0500 Subject: [PATCH] Add 'if exist' to drop statements to avoid failure on initial run. --- lib_mysqludf_json.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib_mysqludf_json.sql b/lib_mysqludf_json.sql index 82877ba..0824551 100644 --- a/lib_mysqludf_json.sql +++ b/lib_mysqludf_json.sql @@ -19,11 +19,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -drop function lib_mysqludf_json_info; -drop function json_array; -drop function json_members; -drop function json_object; -drop function json_values; +drop function if exists lib_mysqludf_json_info; +drop function if exists json_array; +drop function if exists json_members; +drop function if exists json_object; +drop function if exists json_values; create function lib_mysqludf_json_info returns string soname 'lib_mysqludf_json.so'; create function json_array returns string soname 'lib_mysqludf_json.so';