diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLUserProfilesData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserProfilesData.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs index 8af2a3e..dfc3711 100644 --- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs +++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs | |||
@@ -69,6 +69,7 @@ namespace OpenSim.Data.MySQL | |||
69 | 69 | ||
70 | Migration m = new Migration(dbcon, Assembly, "UserProfiles"); | 70 | Migration m = new Migration(dbcon, Assembly, "UserProfiles"); |
71 | m.Update(); | 71 | m.Update(); |
72 | dbcon.Close(); | ||
72 | } | 73 | } |
73 | } | 74 | } |
74 | #endregion Member Functions | 75 | #endregion Member Functions |
@@ -121,6 +122,7 @@ namespace OpenSim.Data.MySQL | |||
121 | } | 122 | } |
122 | } | 123 | } |
123 | } | 124 | } |
125 | dbcon.Close(); | ||
124 | } | 126 | } |
125 | return data; | 127 | return data; |
126 | } | 128 | } |
@@ -228,6 +230,7 @@ namespace OpenSim.Data.MySQL | |||
228 | 230 | ||
229 | cmd.ExecuteNonQuery(); | 231 | cmd.ExecuteNonQuery(); |
230 | } | 232 | } |
233 | dbcon.Close(); | ||
231 | } | 234 | } |
232 | } | 235 | } |
233 | catch (Exception e) | 236 | catch (Exception e) |
@@ -258,6 +261,7 @@ namespace OpenSim.Data.MySQL | |||
258 | cmd.Parameters.AddWithValue("?recordId", recordId.ToString()); | 261 | cmd.Parameters.AddWithValue("?recordId", recordId.ToString()); |
259 | cmd.ExecuteNonQuery(); | 262 | cmd.ExecuteNonQuery(); |
260 | } | 263 | } |
264 | dbcon.Close(); | ||
261 | } | 265 | } |
262 | } | 266 | } |
263 | catch (Exception e) | 267 | catch (Exception e) |
@@ -352,6 +356,7 @@ namespace OpenSim.Data.MySQL | |||
352 | } | 356 | } |
353 | } | 357 | } |
354 | } | 358 | } |
359 | dbcon.Close(); | ||
355 | } | 360 | } |
356 | } | 361 | } |
357 | catch (Exception e) | 362 | catch (Exception e) |
@@ -474,6 +479,7 @@ namespace OpenSim.Data.MySQL | |||
474 | 479 | ||
475 | cmd.ExecuteNonQuery(); | 480 | cmd.ExecuteNonQuery(); |
476 | } | 481 | } |
482 | dbcon.Close(); | ||
477 | } | 483 | } |
478 | } | 484 | } |
479 | catch (Exception e) | 485 | catch (Exception e) |
@@ -504,6 +510,7 @@ namespace OpenSim.Data.MySQL | |||
504 | 510 | ||
505 | cmd.ExecuteNonQuery(); | 511 | cmd.ExecuteNonQuery(); |
506 | } | 512 | } |
513 | dbcon.Close(); | ||
507 | } | 514 | } |
508 | } | 515 | } |
509 | catch (Exception e) | 516 | catch (Exception e) |
@@ -548,6 +555,7 @@ namespace OpenSim.Data.MySQL | |||
548 | } | 555 | } |
549 | } | 556 | } |
550 | } | 557 | } |
558 | dbcon.Close(); | ||
551 | } | 559 | } |
552 | } | 560 | } |
553 | catch (Exception e) | 561 | catch (Exception e) |
@@ -596,6 +604,7 @@ namespace OpenSim.Data.MySQL | |||
596 | 604 | ||
597 | cmd.ExecuteNonQuery(); | 605 | cmd.ExecuteNonQuery(); |
598 | } | 606 | } |
607 | dbcon.Close(); | ||
599 | } | 608 | } |
600 | } | 609 | } |
601 | catch (Exception e) | 610 | catch (Exception e) |
@@ -719,6 +728,7 @@ namespace OpenSim.Data.MySQL | |||
719 | } | 728 | } |
720 | } | 729 | } |
721 | } | 730 | } |
731 | dbcon.Close(); | ||
722 | } | 732 | } |
723 | } | 733 | } |
724 | catch (Exception e) | 734 | catch (Exception e) |
@@ -759,6 +769,7 @@ namespace OpenSim.Data.MySQL | |||
759 | 769 | ||
760 | cmd.ExecuteNonQuery(); | 770 | cmd.ExecuteNonQuery(); |
761 | } | 771 | } |
772 | dbcon.Close(); | ||
762 | } | 773 | } |
763 | } | 774 | } |
764 | catch (Exception e) | 775 | catch (Exception e) |
@@ -884,6 +895,7 @@ namespace OpenSim.Data.MySQL | |||
884 | } | 895 | } |
885 | } | 896 | } |
886 | } | 897 | } |
898 | dbcon.Close(); | ||
887 | } | 899 | } |
888 | } | 900 | } |
889 | catch (Exception e) | 901 | catch (Exception e) |
@@ -939,6 +951,7 @@ namespace OpenSim.Data.MySQL | |||
939 | } | 951 | } |
940 | } | 952 | } |
941 | } | 953 | } |
954 | dbcon.Close(); | ||
942 | } | 955 | } |
943 | } | 956 | } |
944 | catch (Exception e) | 957 | catch (Exception e) |
@@ -975,6 +988,7 @@ namespace OpenSim.Data.MySQL | |||
975 | 988 | ||
976 | cmd.ExecuteNonQuery(); | 989 | cmd.ExecuteNonQuery(); |
977 | } | 990 | } |
991 | dbcon.Close(); | ||
978 | } | 992 | } |
979 | } | 993 | } |
980 | catch (Exception e) | 994 | catch (Exception e) |
@@ -1035,6 +1049,7 @@ namespace OpenSim.Data.MySQL | |||
1035 | } | 1049 | } |
1036 | } | 1050 | } |
1037 | } | 1051 | } |
1052 | dbcon.Close(); | ||
1038 | } | 1053 | } |
1039 | } | 1054 | } |
1040 | catch (Exception e) | 1055 | catch (Exception e) |
@@ -1072,6 +1087,7 @@ namespace OpenSim.Data.MySQL | |||
1072 | 1087 | ||
1073 | cmd.ExecuteNonQuery(); | 1088 | cmd.ExecuteNonQuery(); |
1074 | } | 1089 | } |
1090 | dbcon.Close(); | ||
1075 | } | 1091 | } |
1076 | } | 1092 | } |
1077 | catch (Exception e) | 1093 | catch (Exception e) |