Skip to content

Commit

Permalink
Set order of file hash query to return the latest entry
Browse files Browse the repository at this point in the history
  • Loading branch information
BiggerNoise committed May 14, 2011
1 parent 713b8ca commit d30d7f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions product/roundhouse/databases/DefaultDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ public string get_current_script_hash(string script_name)

DetachedCriteria crit = DetachedCriteria.For<ScriptsRun>()
.Add(Restrictions.Eq("script_name", script_name))
.AddOrder(Order.Desc("id"))
.SetMaxResults(1);

try
Expand Down

0 comments on commit d30d7f6

Please sign in to comment.