From 6101cab4bb9927e0adcbdb267348ea7aaee96d8d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 11 Jun 2012 12:54:20 +0100 Subject: [PATCH] (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 --- Dapper/SqlMapper.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dapper/SqlMapper.cs b/Dapper/SqlMapper.cs index 10b6a445..4752c8ed 100644 --- a/Dapper/SqlMapper.cs +++ b/Dapper/SqlMapper.cs @@ -131,12 +131,9 @@ namespace Dapper { int colCount = reader.FieldCount, hash = colCount; for (int i = 0; i < colCount; i++) - { + { // binding code is only interested in names - not types object tmp = reader.GetName(i); hash = (hash * 31) + (tmp == null ? 0 : tmp.GetHashCode()); - - reader.GetFieldType(i); - hash = (hash * 31) + (tmp == null ? 0 : tmp.GetHashCode()); } return hash; }