Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adapt the installdb script for Linux and Windows

On Linux with MySQL 5.1, the '.so' extension is apparently needed.
  • Loading branch information...
commit 0de289f48ac3daaf367e48c98895ecd256e8a4c5 1 parent be8d6ae
@dtrebbien authored
Showing with 30 additions and 9 deletions.
  1. +9 −9 installdb.sql
  2. +21 −0 installdb.win.sql
View
18 installdb.sql
@@ -10,12 +10,12 @@ drop function if exists str_ucwords;
drop function if exists str_xor;
drop function if exists str_srand;
-create function lib_mysqludf_str_info returns string soname 'lib_mysqludf_str';
-create function str_numtowords returns string soname 'lib_mysqludf_str';
-create function str_rot13 returns string soname 'lib_mysqludf_str';
-create function str_shuffle returns string soname 'lib_mysqludf_str';
-create function str_translate returns string soname 'lib_mysqludf_str';
-create function str_ucfirst returns string soname 'lib_mysqludf_str';
-create function str_ucwords returns string soname 'lib_mysqludf_str';
-create function str_xor returns string soname 'lib_mysqludf_str';
-create function str_srand returns string soname 'lib_mysqludf_str';
+create function lib_mysqludf_str_info returns string soname 'lib_mysqludf_str.so';
+create function str_numtowords returns string soname 'lib_mysqludf_str.so';
+create function str_rot13 returns string soname 'lib_mysqludf_str.so';
+create function str_shuffle returns string soname 'lib_mysqludf_str.so';
+create function str_translate returns string soname 'lib_mysqludf_str.so';
+create function str_ucfirst returns string soname 'lib_mysqludf_str.so';
+create function str_ucwords returns string soname 'lib_mysqludf_str.so';
+create function str_xor returns string soname 'lib_mysqludf_str.so';
+create function str_srand returns string soname 'lib_mysqludf_str.so';
View
21 installdb.win.sql
@@ -0,0 +1,21 @@
+use mysql;
+
+drop function if exists lib_mysqludf_str_info;
+drop function if exists str_numtowords;
+drop function if exists str_rot13;
+drop function if exists str_shuffle;
+drop function if exists str_translate;
+drop function if exists str_ucfirst;
+drop function if exists str_ucwords;
+drop function if exists str_xor;
+drop function if exists str_srand;
+
+create function lib_mysqludf_str_info returns string soname 'lib_mysqludf_str.dll';
+create function str_numtowords returns string soname 'lib_mysqludf_str.dll';
+create function str_rot13 returns string soname 'lib_mysqludf_str.dll';
+create function str_shuffle returns string soname 'lib_mysqludf_str.dll';
+create function str_translate returns string soname 'lib_mysqludf_str.dll';
+create function str_ucfirst returns string soname 'lib_mysqludf_str.dll';
+create function str_ucwords returns string soname 'lib_mysqludf_str.dll';
+create function str_xor returns string soname 'lib_mysqludf_str.dll';
+create function str_srand returns string soname 'lib_mysqludf_str.dll';
Please sign in to comment.
Something went wrong with that request. Please try again.