Commit 6101cab4 authored by unknown's avatar unknown

(schema change detection) actually, don't need hash to depend on types; the...

(schema change detection) actually, don't need hash to depend on types; the binding code only considers names, not types - generated code would be the same even if this doesn't change
parent 7053c56f
...@@ -131,12 +131,9 @@ static int GetColumnHash(IDataReader reader) ...@@ -131,12 +131,9 @@ static int GetColumnHash(IDataReader reader)
{ {
int colCount = reader.FieldCount, hash = colCount; int colCount = reader.FieldCount, hash = colCount;
for (int i = 0; i < colCount; i++) for (int i = 0; i < colCount; i++)
{ { // binding code is only interested in names - not types
object tmp = reader.GetName(i); object tmp = reader.GetName(i);
hash = (hash * 31) + (tmp == null ? 0 : tmp.GetHashCode()); hash = (hash * 31) + (tmp == null ? 0 : tmp.GetHashCode());
reader.GetFieldType(i);
hash = (hash * 31) + (tmp == null ? 0 : tmp.GetHashCode());
} }
return hash; return hash;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment