fix mySQL ( ignoring other dbs )

avinationmerge
UbitUmarov 2015-08-23 01:33:56 +01:00
parent 5da9979024
commit a916ef570e
1 changed files with 2 additions and 1 deletions

View File

@ -613,12 +613,13 @@ namespace OpenSim.Data.MySQL
{ {
cmd2.CommandText = "insert into terrain (RegionUUID, " + cmd2.CommandText = "insert into terrain (RegionUUID, " +
"Revision, Heightfield) values (?RegionUUID, " + "Revision, Heightfield) values (?RegionUUID, " +
"1, ?Heightfield)"; "?Revision, ?Heightfield)";
int terrainDBRevision; int terrainDBRevision;
Array terrainDBblob; Array terrainDBblob;
terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob); terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob);
cmd2.Parameters.AddWithValue("RegionUUID", regionID.ToString());
cmd2.Parameters.AddWithValue("Revision", terrainDBRevision); cmd2.Parameters.AddWithValue("Revision", terrainDBRevision);
cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob); cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob);