diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index f910e44..f3c0160 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -613,12 +613,13 @@ namespace OpenSim.Data.MySQL | |||
613 | { | 613 | { |
614 | cmd2.CommandText = "insert into terrain (RegionUUID, " + | 614 | cmd2.CommandText = "insert into terrain (RegionUUID, " + |
615 | "Revision, Heightfield) values (?RegionUUID, " + | 615 | "Revision, Heightfield) values (?RegionUUID, " + |
616 | "1, ?Heightfield)"; | 616 | "?Revision, ?Heightfield)"; |
617 | 617 | ||
618 | int terrainDBRevision; | 618 | int terrainDBRevision; |
619 | Array terrainDBblob; | 619 | Array terrainDBblob; |
620 | terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob); | 620 | terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob); |
621 | 621 | ||
622 | cmd2.Parameters.AddWithValue("RegionUUID", regionID.ToString()); | ||
622 | cmd2.Parameters.AddWithValue("Revision", terrainDBRevision); | 623 | cmd2.Parameters.AddWithValue("Revision", terrainDBRevision); |
623 | cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob); | 624 | cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob); |
624 | 625 | ||