Permalink
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...
1 parent be8d6ae commit 0de289f48ac3daaf367e48c98895ecd256e8a4c5 @dtrebbien committed Mar 13, 2011
Showing with 30 additions and 9 deletions.
  1. +9 −9 installdb.sql
  2. +21 −0 installdb.win.sql
View
@@ -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
@@ -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';

0 comments on commit 0de289f

Please sign in to comment.