diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Data/PGSQL/PGSQLManager.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLManager.cs b/OpenSim/Data/PGSQL/PGSQLManager.cs index 46f835a..276a37c 100644 --- a/OpenSim/Data/PGSQL/PGSQLManager.cs +++ b/OpenSim/Data/PGSQL/PGSQLManager.cs | |||
@@ -251,7 +251,7 @@ namespace OpenSim.Data.PGSQL | |||
251 | } | 251 | } |
252 | if (PGFieldType == "double precision") | 252 | if (PGFieldType == "double precision") |
253 | { | 253 | { |
254 | return (Double)value; | 254 | return Convert.ToDouble(value); |
255 | } | 255 | } |
256 | return CreateParameterValue(value); | 256 | return CreateParameterValue(value); |
257 | } | 257 | } |
@@ -326,7 +326,7 @@ namespace OpenSim.Data.PGSQL | |||
326 | /// <param name="migrationStore">migrationStore.</param> | 326 | /// <param name="migrationStore">migrationStore.</param> |
327 | public void CheckMigration(string migrationStore) | 327 | public void CheckMigration(string migrationStore) |
328 | { | 328 | { |
329 | using (NpgsqlConnection connection = new NpgsqlConnection(connectionString)) | 329 | using (NpgsqlConnection connection = new NpgsqlConnection(connectionString)) |
330 | { | 330 | { |
331 | connection.Open(); | 331 | connection.Open(); |
332 | Assembly assem = GetType().Assembly; | 332 | Assembly assem = GetType().Assembly; |