Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
mysqldatautils now uses syncstopversion instead of ctids for cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
zerobfd authored and Clayton Pence committed Feb 3, 2014
1 parent 00d30d6 commit 0525f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TeslaSQL/DataUtils/MySQLDataUtils.cs
Expand Up @@ -938,7 +938,7 @@ public IEnumerable<TTable> GetTables(string dbName)

public IEnumerable<long> GetOldCTIDsMaster(string dbName, DateTime chopDate)
{
string sql = "SELECT ctid FROM tblCTVersion WHERE syncStartTime < @chopDate";
string sql = "SELECT syncStopVersion AS ctid FROM tblCTVersion WHERE syncStartTime < @chopDate";
var cmd = new MySqlCommand(sql);
cmd.Parameters.Add("@chopDate", MySqlDbType.Timestamp).Value = chopDate.ToUniversalTime();
DataTable res = MySqlQuery(dbName, cmd);
Expand Down

0 comments on commit 0525f04

Please sign in to comment.