diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLManager.cs | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs index 7c3ed28..61fd039 100644 --- a/OpenSim/Data/MySQL/MySQLManager.cs +++ b/OpenSim/Data/MySQL/MySQLManager.cs | |||
@@ -156,7 +156,7 @@ namespace OpenSim.Data.MySQL | |||
156 | public string getVersion() | 156 | public string getVersion() |
157 | { | 157 | { |
158 | Module module = GetType().Module; | 158 | Module module = GetType().Module; |
159 | string dllName = module.Assembly.ManifestModule.Name; | 159 | // string dllName = module.Assembly.ManifestModule.Name; |
160 | Version dllVersion = module.Assembly.GetName().Version; | 160 | Version dllVersion = module.Assembly.GetName().Version; |
161 | 161 | ||
162 | return | 162 | return |
@@ -916,8 +916,12 @@ namespace OpenSim.Data.MySQL | |||
916 | IDbCommand result = Query(sql, parameters); | 916 | IDbCommand result = Query(sql, parameters); |
917 | 917 | ||
918 | //Console.WriteLine(result.CommandText); | 918 | //Console.WriteLine(result.CommandText); |
919 | int x; | 919 | // int x; |
920 | if ((x = result.ExecuteNonQuery()) > 0) | 920 | // if ((x = result.ExecuteNonQuery()) > 0) |
921 | // { | ||
922 | // returnval = true; | ||
923 | // } | ||
924 | if (result.ExecuteNonQuery() > 0) | ||
921 | { | 925 | { |
922 | returnval = true; | 926 | returnval = true; |
923 | } | 927 | } |
@@ -952,8 +956,12 @@ namespace OpenSim.Data.MySQL | |||
952 | 956 | ||
953 | IDbCommand result = Query(sql, parameters); | 957 | IDbCommand result = Query(sql, parameters); |
954 | 958 | ||
955 | int x; | 959 | // int x; |
956 | if ((x = result.ExecuteNonQuery()) > 0) | 960 | // if ((x = result.ExecuteNonQuery()) > 0) |
961 | // { | ||
962 | // returnval = true; | ||
963 | // } | ||
964 | if (result.ExecuteNonQuery() > 0) | ||
957 | { | 965 | { |
958 | returnval = true; | 966 | returnval = true; |
959 | } | 967 | } |
@@ -1000,8 +1008,12 @@ namespace OpenSim.Data.MySQL | |||
1000 | IDbCommand result = Query(sql, parameters); | 1008 | IDbCommand result = Query(sql, parameters); |
1001 | 1009 | ||
1002 | //Console.WriteLine(result.CommandText); | 1010 | //Console.WriteLine(result.CommandText); |
1003 | int x; | 1011 | // int x; |
1004 | if ((x = result.ExecuteNonQuery()) > 0) | 1012 | // if ((x = result.ExecuteNonQuery()) > 0) |
1013 | // { | ||
1014 | // returnval = true; | ||
1015 | // } | ||
1016 | if (result.ExecuteNonQuery() > 0) | ||
1005 | { | 1017 | { |
1006 | returnval = true; | 1018 | returnval = true; |
1007 | } | 1019 | } |