Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix optimized DbType lookup for database type names that contain parenthesis. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
9d9fa54984c09dce820f47135605a37d |
User & Date: | mistachkin 2011-09-24 08:09:11.743 |
Context
2011-09-28
| ||
22:48 | Modify the unit test infrastructure to transform it into a formal Eagle package. check-in: b2c3d6de86 user: mistachkin tags: trunk | |
2011-09-24
| ||
08:09 | Fix optimized DbType lookup for database type names that contain parenthesis. check-in: 9d9fa54984 user: mistachkin tags: trunk | |
07:41 | Reduce the number of String.Compare calls in the hot path for SQLiteCommand.ExecuteReader. check-in: 32ce066699 user: mistachkin tags: trunk | |
Changes
Changes to System.Data.SQLite/SQLiteConvert.cs.
︙ | ︙ | |||
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 | _typeNames.Add(typeName.typeName, typeName); } } SQLiteTypeNames value; if (_typeNames.TryGetValue(Name, out value)) return value.dataType; return DbType.Object; } #endregion private static Dictionary<string, SQLiteTypeNames> _typeNames = null; } | > > > > > > > > > > > > | 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 | _typeNames.Add(typeName.typeName, typeName); } } SQLiteTypeNames value; if (_typeNames.TryGetValue(Name, out value)) { return value.dataType; } else { int index = Name.IndexOf('('); if ((index > 0) && _typeNames.TryGetValue(Name.Substring(0, index), out value)) { return value.dataType; } } return DbType.Object; } #endregion private static Dictionary<string, SQLiteTypeNames> _typeNames = null; } |
︙ | ︙ |