Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Comment: | 1.0.62.0 |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
5ab035e676159f12988644d230a1384a |
User & Date: | rmsimpson 2009-06-19 20:57:23.000 |
2009-06-19
| ||
21:04 | 3.6.15 check-in: e7d1758f41 user: rmsimpson tags: sourceforge | |
20:57 | 1.0.62.0 check-in: 5ab035e676 user: rmsimpson tags: sourceforge | |
2009-04-28
| ||
17:09 | 1.0.61.0 check-in: 734737fbb6 user: rmsimpson tags: sourceforge | |
︙ | ︙ | |||
93 94 95 96 97 98 99 | <configuration> <system.data> <DbProviderFactories> <remove invariant="System.Data.SQLite"/> <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, | | | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | <configuration> <system.data> <DbProviderFactories> <remove invariant="System.Data.SQLite"/> <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.62.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139"/> </DbProviderFactories> </system.data> </configuration> </pre> </div> <p> |
︙ | ︙ |
︙ | ︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | </td> </tr> </table> </div> <div id="mainSection"> <div id="mainBody"> <h1 class="heading">Version History</h1> <p><b>1.0.61.0 - April 28, 2009</b></p> <ul> <li>Code merge with SQLite 3.6.13. The new backup features are as yet unimplemented in the provider, but will be forthcoming in a subsequent release</li> <li>Fixed the default-value lookups in SQLiteConnectionStringBuilder when accessing properties</li> <li>Lock the SQLiteTransaction object during dispose to avoid potential race condition during cleanup</li> <li>Fixed SQLiteDataReader.GetDecimal() processing and parsing of decimal values for cases when SQLite returns things like "1.0e-05" instead of "0.0001"</li> </ul> | > > > > > > > > > > > > | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | </td> </tr> </table> </div> <div id="mainSection"> <div id="mainBody"> <h1 class="heading">Version History</h1> <p><b>1.0.62.0 - June 20, 2009</b></p> <ul> <li>Code merge with SQLite 3.6.15</li> <li>Fixed the decimal reading bug in the SQLiteDataReader</li> <li>Changed Join()'s to Sleep()'s in the statement retry code to prevent message pumping</li> <li>Fixed a bad pointer conversion when retrieving blobs using GetBytes() in 64-bit land</li> <li>Several changes to the Test program that comes with the provider. Tests can now be individually disabled, and the test program can run against several provider back-ends</li> </ul> <p><b>1.0.61.0 - April 28, 2009</b></p> <ul> <li>Code merge with SQLite 3.6.13. The new backup features are as yet unimplemented in the provider, but will be forthcoming in a subsequent release</li> <li>Fixed the default-value lookups in SQLiteConnectionStringBuilder when accessing properties</li> <li>Lock the SQLiteTransaction object during dispose to avoid potential race condition during cleanup</li> <li>Fixed SQLiteDataReader.GetDecimal() processing and parsing of decimal values for cases when SQLite returns things like "1.0e-05" instead of "0.0001"</li> </ul> |
︙ | ︙ |
cannot compute difference between binary files
︙ | ︙ | |||
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | #region IDataConnectionUIControl Members public override void LoadProperties() { if (ConnectionProperties.Contains("data source")) fileTextBox.Text = ConnectionProperties["data source"] as string; if (ConnectionProperties.Contains("password")) passwordTextBox.Text = ConnectionProperties["password"] as string; } #endregion private void passwordTextBox_Leave(object sender, EventArgs e) { if (String.IsNullOrEmpty(passwordTextBox.Text)) | > > > > | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | #region IDataConnectionUIControl Members public override void LoadProperties() { if (ConnectionProperties.Contains("data source")) fileTextBox.Text = ConnectionProperties["data source"] as string; else fileTextBox.Text = String.Empty; if (ConnectionProperties.Contains("password")) passwordTextBox.Text = ConnectionProperties["password"] as string; else passwordTextBox.Text = String.Empty; } #endregion private void passwordTextBox_Leave(object sender, EventArgs e) { if (String.IsNullOrEmpty(passwordTextBox.Text)) |
︙ | ︙ |
︙ | ︙ | |||
49 50 51 52 53 54 55 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO | | | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,62,0 PRODUCTVERSION 1,0,0,0 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x4L FILETYPE 0x2L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "Comments", "http://sqlite.phxsoftware.com" VALUE "FileDescription", "System.Data.SQLite Interop Library" VALUE "FileVersion", "1.0.62.0" VALUE "InternalName", "SQLite.Interop.DLL" VALUE "LegalCopyright", "Released to the public domain" VALUE "OriginalFilename", "SQLite3.DLL 3.6.15" VALUE "ProductName", "System.Data.SQLite" VALUE "ProductVersion", "1.0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1200 |
︙ | ︙ |
︙ | ︙ | |||
156 157 158 159 160 161 162 | Name="VCPreLinkEventTool" CommandLine="" /> <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions=" /subsystem:windowsce,4.20 /ARMPADCODE" | | | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | Name="VCPreLinkEventTool" CommandLine="" /> <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions=" /subsystem:windowsce,4.20 /ARMPADCODE" OutputFile="../bin/CompactFramework/$(InputName).062.DLL" AdditionalLibraryDirectories="" IgnoreDefaultLibraryNames="" ModuleDefinitionFile="src\sqlite3.def" AddModuleNamesToAssembly="" EmbedManagedResourceFile="" EntryPointSymbol="" MergeSections="" |
︙ | ︙ | |||
493 494 495 496 497 498 499 | <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions=" /subsystem:windowsce,4.20 /ARMPADCODE" | | | 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 | <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions=" /subsystem:windowsce,4.20 /ARMPADCODE" OutputFile="../bin/CompactFramework/$(InputName).061.DLL" AdditionalLibraryDirectories="" IgnoreDefaultLibraryNames="" ModuleDefinitionFile="src\sqlite3.def" AddModuleNamesToAssembly="" EmbedManagedResourceFile="" GenerateDebugInformation="true" SubSystem="8" |
︙ | ︙ |
1 | // This code was automatically generated from assembly | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | // This code was automatically generated from assembly // C:\Src\SQLite.NET\bin\ManagedOnly\System.Data.SQLite.dll #include <windef.h> #pragma data_seg(push,clrseg,".clr") #pragma comment(linker, "/SECTION:.clr,ER") char __ph[156244] = {0}; // The number of bytes to reserve #pragma data_seg(pop,clrseg) typedef BOOL (WINAPI *DLLMAIN)(HANDLE, DWORD, LPVOID); typedef struct EXTRA_STUFF { DWORD dwNativeEntryPoint; } EXTRA_STUFF, *LPEXTRA_STUFF; |
︙ | ︙ |
︙ | ︙ | |||
12 13 14 15 16 17 18 | EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SQLite.Interop", "SQLite.Interop\SQLite.Interop.vcproj", "{10B51CE8-A838-44DE-BD82-B658F0296F80}" ProjectSection(ProjectDependencies) = postProject {AC139952-261A-4463-B6FA-AEBC25283A66} = {AC139952-261A-4463-B6FA-AEBC25283A66} EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testce", "testce\testce.csproj", "{B86CE504-C4E4-496F-A0F0-E613BCFD3DF7}" | < < < < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SQLite.Interop", "SQLite.Interop\SQLite.Interop.vcproj", "{10B51CE8-A838-44DE-BD82-B658F0296F80}" ProjectSection(ProjectDependencies) = postProject {AC139952-261A-4463-B6FA-AEBC25283A66} = {AC139952-261A-4463-B6FA-AEBC25283A66} EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testce", "testce\testce.csproj", "{B86CE504-C4E4-496F-A0F0-E613BCFD3DF7}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Data.SQLite - Full", "System.Data.SQLite\System.Data.SQLite - Full.csproj", "{AC139952-261A-4463-B6FA-AEBC25283A66}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Data.SQLite.Linq", "System.Data.SQLite.Linq\System.Data.SQLite.Linq.csproj", "{E6BF9F74-58E2-413B-A7CE-EA653ECB728D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testlinq", "testlinq\testlinq.csproj", "{9D3CF7A6-092A-4B05-B0E4-BEF6944525B3}" EndProject |
︙ | ︙ |
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
cannot compute difference between binary files
1 2 3 4 5 6 7 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> ADO.NET 2.0/3.5 SQLite Data Provider<br> | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> ADO.NET 2.0/3.5 SQLite Data Provider<br> Version 1.0.62.0 June 19, 2009<br> Using SQLite 3.6.15<br> Written by Robert Simpson (<a href="mailto:robert@blackcastlesoft.com">robert@blackcastlesoft.com</a>)<br> Released to the public domain, use at your own risk!<br> Official provider website: <a href="http://sqlite.phxsoftware.com">http://sqlite.phxsoftware.com</a><br /> <br> The latest version can be downloaded <a href="http://sourceforge.net/projects/sqlite-dotnet2"> here</a> <br> |
︙ | ︙ | |||
122 123 124 125 126 127 128 129 130 131 132 133 134 135 | <p> The core sqlite engine is compiled directly from the unmodified source code available at the sqlite.org website. Several additional pieces are compiled on top of it to extend its functionality, but the core engine's source is not changed.</p> <p></p> <p> <b>Version History</b></p> <p><b>1.0.61.0 - April 28, 2009</b></p> <ul> <li>Code merge with SQLite 3.6.13. The new backup features are as yet unimplemented in the provider, but will be forthcoming in a subsequent release</li> <li>Fixed the default-value lookups in SQLiteConnectionStringBuilder when accessing properties</li> <li>Lock the SQLiteTransaction object during dispose to avoid potential race condition during cleanup</li> <li>Fixed SQLiteDataReader.GetDecimal() processing and parsing of decimal values for cases when SQLite returns things like "1.0e-05" instead of "0.0001"</li> </ul> | > > > > > > > > > > > > | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | <p> The core sqlite engine is compiled directly from the unmodified source code available at the sqlite.org website. Several additional pieces are compiled on top of it to extend its functionality, but the core engine's source is not changed.</p> <p></p> <p> <b>Version History</b></p> <p><b>1.0.62.0 - June 20, 2009</b></p> <ul> <li>Code merge with SQLite 3.6.15</li> <li>Fixed the decimal reading bug in the SQLiteDataReader</li> <li>Changed Join()'s to Sleep()'s in the statement retry code to prevent message pumping</li> <li>Fixed a bad pointer conversion when retrieving blobs using GetBytes() in 64-bit land</li> <li>Several changes to the Test program that comes with the provider. Tests can now be individually disabled, and the test program can run against several provider back-ends</li> </ul> <p><b>1.0.61.0 - April 28, 2009</b></p> <ul> <li>Code merge with SQLite 3.6.13. The new backup features are as yet unimplemented in the provider, but will be forthcoming in a subsequent release</li> <li>Fixed the default-value lookups in SQLiteConnectionStringBuilder when accessing properties</li> <li>Lock the SQLiteTransaction object during dispose to avoid potential race condition during cleanup</li> <li>Fixed SQLiteDataReader.GetDecimal() processing and parsing of decimal values for cases when SQLite returns things like "1.0e-05" instead of "0.0001"</li> </ul> |
︙ | ︙ |
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.3031 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace test.Properties { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("test.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } } } |
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> </root> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | using System; using System.Data.Common; using System.Data; using System.Data.SQLite; using System.Transactions; using System.Collections.Generic; using System.Text; namespace test { internal class TestCases : TestCaseBase { internal TestCases(DbProviderFactory factory, string connectionString) : base(factory, connectionString) { } /// <summary> /// Inserts binary data into the database using a named parameter | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | using System; using System.Data.Common; using System.Data; using System.Data.SQLite; using System.Transactions; using System.Collections.Generic; using System.Text; namespace test { internal class TestCases : TestCaseBase { internal TestCases() { } internal TestCases(DbProviderFactory factory, string connectionString) : base(factory, connectionString) { } /// <summary> /// Inserts binary data into the database using a named parameter |
︙ | ︙ | |||
889 890 891 892 893 894 895 | { cmd.CommandText = "INSERT INTO TestCase(Field1, Field2, [Fiëld3], [Fiæld4], Field5) VALUES(1, 3.14159, 'Fiëld3', 'Fiæld4', '2005-01-01 13:49:00')"; cmd.ExecuteNonQuery(); } } [Test] | | < | > > > > > > > > > > > > > | > > > > > > > > > > > > > | < < < | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < < < < < | 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 | { cmd.CommandText = "INSERT INTO TestCase(Field1, Field2, [Fiëld3], [Fiæld4], Field5) VALUES(1, 3.14159, 'Fiëld3', 'Fiæld4', '2005-01-01 13:49:00')"; cmd.ExecuteNonQuery(); } } [Test] internal string IterationTest1() { CheckSQLite(); using (DbCommand cmd = _cnn.CreateCommand()) { int dtStart; int dtEnd; int nCount; long n; cmd.CommandText = "SELECT Foo(ID, ID) FROM TestCase"; cmd.Prepare(); dtStart = Environment.TickCount; nCount = 0; using (DbDataReader rd = cmd.ExecuteReader()) { while (rd.Read()) { n = rd.GetInt64(0); nCount++; } dtEnd = Environment.TickCount; } return String.Format("User Function iteration of {0} records in {1} ms", nCount, (dtEnd - dtStart)); } } [Test] internal string IterationTest2() { StringBuilder builder = new StringBuilder(); using (DbCommand cmd = _cnn.CreateCommand()) { int dtStart; int dtEnd; int nCount; long n; cmd.CommandText = "SELECT ID FROM TestCase"; cmd.Prepare(); dtStart = Environment.TickCount; nCount = 0; using (DbDataReader rd = cmd.ExecuteReader()) { while (rd.Read()) { n = rd.GetInt64(0); nCount++; } dtEnd = Environment.TickCount; } return String.Format("Raw iteration of {0} records in {1} ms", nCount, (dtEnd - dtStart)); } } [Test] internal string IterationTest3() { StringBuilder builder = new StringBuilder(); using (DbCommand cmd = _cnn.CreateCommand()) { int dtStart; int dtEnd; int nCount; long n; cmd.CommandText = "SELECT ABS(ID) FROM TestCase"; cmd.Prepare(); dtStart = Environment.TickCount; nCount = 0; using (DbDataReader rd = cmd.ExecuteReader()) { while (rd.Read()) { n = rd.GetInt64(0); nCount++; } dtEnd = Environment.TickCount; } return String.Format("Intrinsic Function iteration of {0} records in {1} ms", nCount, (dtEnd - dtStart)); } } [Test(Sequence=21)] internal void KeyInfoTest() { using (DbCommand cmd = _cnn.CreateCommand()) { try { // First test against integer primary key (optimized) keyinfo fetch cmd.CommandText = "Create table keyinfotest (id integer primary key, myuniquevalue integer unique not null, myvalue varchar(50))"; cmd.ExecuteNonQuery(); cmd.CommandText = "Select * from keyinfotest"; using (DbDataReader reader = cmd.ExecuteReader(CommandBehavior.KeyInfo | CommandBehavior.SchemaOnly)) { using (DataTable tbl = reader.GetSchemaTable()) { if (tbl.Rows.Count != 3) throw new Exception("Wrong number of columns returned"); } } cmd.CommandText = "SELECT MyValue FROM keyinfotest"; using (DbDataReader reader = cmd.ExecuteReader(CommandBehavior.KeyInfo | CommandBehavior.SchemaOnly)) { using (DataTable tbl = reader.GetSchemaTable()) { if (tbl.Rows.Count != 2) throw new Exception("Wrong number of columns returned"); } } } finally { } cmd.CommandText = "DROP TABLE keyinfotest"; cmd.ExecuteNonQuery(); try { // Now test against non-integer primary key (unoptimized) subquery keyinfo fetch cmd.CommandText = "Create table keyinfotest (id char primary key, myuniquevalue integer unique not null, myvalue varchar(50))"; cmd.ExecuteNonQuery(); cmd.CommandText = "SELECT MyValue FROM keyinfotest"; using (DbDataReader reader = cmd.ExecuteReader(CommandBehavior.KeyInfo | CommandBehavior.SchemaOnly)) { using (DataTable tbl = reader.GetSchemaTable()) { if (tbl.Rows.Count != 2) throw new Exception("Wrong number of columns returned"); } } cmd.CommandText = "Select * from keyinfotest"; using (DbDataReader reader = cmd.ExecuteReader(CommandBehavior.KeyInfo | CommandBehavior.SchemaOnly)) { using (DataTable tbl = reader.GetSchemaTable()) { if (tbl.Rows.Count != 3) throw new Exception("Wrong number of columns returned"); } } // Make sure commandbuilder can generate an update command with the correct parameter count using (DbDataAdapter adp = _fact.CreateDataAdapter()) using (DbCommandBuilder builder = _fact.CreateCommandBuilder()) { adp.SelectCommand = cmd; builder.DataAdapter = adp; builder.ConflictOption = ConflictOption.OverwriteChanges; using (DbCommand updatecmd = builder.GetUpdateCommand()) { if (updatecmd.Parameters.Count != 4) throw new Exception("Wrong number of parameters in update command!"); } } } finally { } } } [Test] internal void ConnectionStringBuilder() { DbConnectionStringBuilder builder = _fact.CreateConnectionStringBuilder(); |
︙ | ︙ | |||
1162 1163 1164 1165 1166 1167 1168 | arr[n] = new MTTest(); arr[n].t = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(MultithreadedTestThread)); arr[n].t.IsBackground = true; arr[n].cnn = ((ICloneable)_cnn).Clone() as DbConnection; arr[n].t.Start(arr[n]); } | | | 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 | arr[n] = new MTTest(); arr[n].t = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(MultithreadedTestThread)); arr[n].t.IsBackground = true; arr[n].cnn = ((ICloneable)_cnn).Clone() as DbConnection; arr[n].t.Start(arr[n]); } System.Threading.Thread.Sleep(8000); bool failed = false; Exception e = null; for (int n = 0; n < arr.Length; n++) { if (arr[n].t.Join(0) == false) { failed = true; |
︙ | ︙ | |||
1506 1507 1508 1509 1510 1511 1512 | } /// <summary> /// Causes the user-defined function to be called /// </summary> /// <returns></returns> [Test] | | < < | > > > > > > > > > > > | > > > > > > > > > > > | > > > > > > > > > > > | > > > > > > > > > > > | < | | 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 | } /// <summary> /// Causes the user-defined function to be called /// </summary> /// <returns></returns> [Test] internal string UserFunction1() { CheckSQLite(); using (DbCommand cmd = _cnn.CreateCommand()) { int nTimes; int dtStart; nTimes = 0; cmd.CommandText = "SELECT Foo('ee','foo')"; dtStart = Environment.TickCount; while (Environment.TickCount - dtStart < 1000) { cmd.ExecuteNonQuery(); nTimes++; } return String.Format("User (text) command executed {0} times in 1 second.", nTimes); } } [Test] internal string UserFunction2() { CheckSQLite(); using (DbCommand cmd = _cnn.CreateCommand()) { int nTimes; int dtStart; nTimes = 0; cmd.CommandText = "SELECT Foo(10,11)"; dtStart = Environment.TickCount; while (Environment.TickCount - dtStart < 1000) { cmd.ExecuteNonQuery(); nTimes++; } return String.Format("UserFunction command executed {0} times in 1 second.", nTimes); } } [Test] internal string UserFunction3() { CheckSQLite(); using (DbCommand cmd = _cnn.CreateCommand()) { int nTimes; int dtStart; nTimes = 0; cmd.CommandText = "SELECT ABS(1)"; dtStart = Environment.TickCount; while (Environment.TickCount - dtStart < 1000) { cmd.ExecuteNonQuery(); nTimes++; } return String.Format("Intrinsic command executed {0} times in 1 second.", nTimes); } } [Test] internal string UserFunction4() { CheckSQLite(); using (DbCommand cmd = _cnn.CreateCommand()) { int nTimes; int dtStart; nTimes = 0; cmd.CommandText = "SELECT lower('FOO')"; dtStart = Environment.TickCount; while (Environment.TickCount - dtStart < 1000) { cmd.ExecuteNonQuery(); nTimes++; } return String.Format("Intrin (txt) command executed {0} times in 1 second.", nTimes); } } [Test] internal string UserFunction5() { CheckSQLite(); using (DbCommand cmd = _cnn.CreateCommand()) { int nTimes; int dtStart; nTimes = 0; cmd.CommandText = "SELECT 1"; dtStart = Environment.TickCount; while (Environment.TickCount - dtStart < 1000) { cmd.ExecuteNonQuery(); nTimes++; } return String.Format("Raw Value command executed {0} times in 1 second.", nTimes); } } [Test(Sequence = 42)] internal void VerifyBinaryData() { BinaryInsert(); using (DbCommand cmd = _cnn.CreateCommand()) { cmd.CommandText = "SELECT Field6 FROM TestCase WHERE Field6 IS NOT NULL"; |
︙ | ︙ | |||
1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 | delegate void TestStartingEvent(object sender, TestEventArgs args); internal abstract class TestCaseBase { protected DbProviderFactory _fact; protected DbConnection _cnn = null; protected DbConnectionStringBuilder _cnnstring; public event TestCompletedEvent OnTestFinished; public event TestStartingEvent OnTestStarting; public event EventHandler OnAllTestsDone; protected TestCaseBase(DbProviderFactory factory, string connectionString) { _fact = factory; _cnn = _fact.CreateConnection(); _cnn.ConnectionString = connectionString; _cnnstring = _fact.CreateConnectionStringBuilder(); _cnnstring.ConnectionString = connectionString; _cnn.Open(); } internal void Run() { SortedList<TestAttribute, System.Reflection.MethodInfo> items = new SortedList<TestAttribute, System.Reflection.MethodInfo>(); foreach (System.Reflection.MethodInfo mi in GetType().GetMethods(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod)) { object[] att = mi.GetCustomAttributes(typeof(TestAttribute), false); | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | | 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 | delegate void TestStartingEvent(object sender, TestEventArgs args); internal abstract class TestCaseBase { protected DbProviderFactory _fact; protected DbConnection _cnn = null; protected DbConnectionStringBuilder _cnnstring; protected Dictionary<string, bool> _tests = new Dictionary<string,bool>(); public event TestCompletedEvent OnTestFinished; public event TestStartingEvent OnTestStarting; public event EventHandler OnAllTestsDone; protected TestCaseBase() { SortedList<TestAttribute, System.Reflection.MethodInfo> items = new SortedList<TestAttribute, System.Reflection.MethodInfo>(); foreach (System.Reflection.MethodInfo mi in GetType().GetMethods(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod)) { object[] att = mi.GetCustomAttributes(typeof(TestAttribute), false); if (att.Length == 1) { items.Add((TestAttribute)att[0], mi); } } foreach (KeyValuePair<TestAttribute, System.Reflection.MethodInfo> pair in items) { _tests.Add(pair.Value.Name, true); } } protected TestCaseBase(DbProviderFactory factory, string connectionString) { _fact = factory; _cnn = _fact.CreateConnection(); _cnn.ConnectionString = connectionString; _cnnstring = _fact.CreateConnectionStringBuilder(); _cnnstring.ConnectionString = connectionString; _cnn.Open(); } internal Dictionary<string, bool> Tests { get { return _tests; } set { _tests = value; } } internal void Run() { SortedList<TestAttribute, System.Reflection.MethodInfo> items = new SortedList<TestAttribute, System.Reflection.MethodInfo>(); foreach (System.Reflection.MethodInfo mi in GetType().GetMethods(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod)) { object[] att = mi.GetCustomAttributes(typeof(TestAttribute), false); if (att.Length == 1 && _tests[mi.Name] == true) { items.Add((TestAttribute)att[0], mi); } } foreach (KeyValuePair<TestAttribute, System.Reflection.MethodInfo> pair in items) { |
︙ | ︙ |
︙ | ︙ | |||
32 33 34 35 36 37 38 | System.Windows.Forms.Label label2; System.Windows.Forms.Button closeButton; System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); this._provider = new System.Windows.Forms.ComboBox(); this._connectionString = new System.Windows.Forms.ComboBox(); this._grid = new System.Windows.Forms.DataGridView(); | < > > > > | | | | | | | < < < < < < < < < < < | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | System.Windows.Forms.Label label2; System.Windows.Forms.Button closeButton; System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); this._provider = new System.Windows.Forms.ComboBox(); this._connectionString = new System.Windows.Forms.ComboBox(); this._grid = new System.Windows.Forms.DataGridView(); this.Test = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Result = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Time = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Information = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.runButton = new System.Windows.Forms.Button(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.testMenu = new System.Windows.Forms.ToolStripMenuItem(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); closeButton = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this._grid)).BeginInit(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // // label1 // label1.AutoSize = true; label1.Location = new System.Drawing.Point(14, 35); label1.Name = "label1"; label1.Size = new System.Drawing.Size(46, 13); label1.TabIndex = 0; label1.Text = "&Provider"; // // label2 // label2.AutoSize = true; label2.Location = new System.Drawing.Point(250, 35); label2.Name = "label2"; label2.Size = new System.Drawing.Size(91, 13); label2.TabIndex = 2; label2.Text = "Connection &String"; // // closeButton // closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); closeButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; closeButton.Location = new System.Drawing.Point(534, 514); closeButton.Name = "closeButton"; closeButton.Size = new System.Drawing.Size(75, 23); closeButton.TabIndex = 5; closeButton.Text = "&Close"; closeButton.UseVisualStyleBackColor = true; closeButton.Click += new System.EventHandler(this.closeButton_Click); // // _provider // this._provider.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._provider.FormattingEnabled = true; this._provider.Location = new System.Drawing.Point(66, 32); this._provider.Name = "_provider"; this._provider.Size = new System.Drawing.Size(178, 21); this._provider.TabIndex = 1; // // _connectionString // this._connectionString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._connectionString.FormattingEnabled = true; this._connectionString.Location = new System.Drawing.Point(347, 32); this._connectionString.Name = "_connectionString"; this._connectionString.Size = new System.Drawing.Size(262, 21); this._connectionString.TabIndex = 3; // // _grid // this._grid.AllowUserToAddRows = false; this._grid.AllowUserToDeleteRows = false; this._grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._grid.BackgroundColor = System.Drawing.SystemColors.Window; this._grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this._grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Test, this.Result, this.Time, this.Information}); this._grid.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this._grid.Location = new System.Drawing.Point(12, 58); this._grid.Name = "_grid"; this._grid.ReadOnly = true; this._grid.RowHeadersVisible = false; this._grid.Size = new System.Drawing.Size(597, 450); this._grid.TabIndex = 4; // // Test // this.Test.Frozen = true; this.Test.HeaderText = "Test"; this.Test.Name = "Test"; this.Test.ReadOnly = true; this.Test.Width = 150; |
︙ | ︙ | |||
159 160 161 162 163 164 165 166 167 168 169 170 171 | this.Information.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.Information.DefaultCellStyle = dataGridViewCellStyle4; this.Information.HeaderText = "Information"; this.Information.Name = "Information"; this.Information.ReadOnly = true; // // TestCasesDialog // this.AcceptButton = this.runButton; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = closeButton; | > > > > > > > > > > > > > > > > > > > > > > > > > > > | > > > > > > | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | this.Information.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.Information.DefaultCellStyle = dataGridViewCellStyle4; this.Information.HeaderText = "Information"; this.Information.Name = "Information"; this.Information.ReadOnly = true; // // runButton // this.runButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.runButton.Location = new System.Drawing.Point(453, 514); this.runButton.Name = "runButton"; this.runButton.Size = new System.Drawing.Size(75, 23); this.runButton.TabIndex = 6; this.runButton.Text = "&Run"; this.runButton.UseVisualStyleBackColor = true; this.runButton.Click += new System.EventHandler(this.runButton_Click); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.testMenu}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(621, 24); this.menuStrip1.TabIndex = 7; this.menuStrip1.Text = "menuStrip1"; // // testMenu // this.testMenu.Name = "testMenu"; this.testMenu.Size = new System.Drawing.Size(46, 20); this.testMenu.Text = "&Tests"; // // TestCasesDialog // this.AcceptButton = this.runButton; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = closeButton; this.ClientSize = new System.Drawing.Size(621, 549); this.Controls.Add(this.menuStrip1); this.Controls.Add(this.runButton); this.Controls.Add(closeButton); this.Controls.Add(this._grid); this.Controls.Add(this._connectionString); this.Controls.Add(label2); this.Controls.Add(this._provider); this.Controls.Add(label1); this.MainMenuStrip = this.menuStrip1; this.Name = "TestCasesDialog"; this.Text = "ADO.NET Provider Test"; ((System.ComponentModel.ISupportInitialize)(this._grid)).EndInit(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.ComboBox _provider; private System.Windows.Forms.ComboBox _connectionString; private System.Windows.Forms.DataGridView _grid; private System.Windows.Forms.Button runButton; private System.Windows.Forms.DataGridViewTextBoxColumn Test; private System.Windows.Forms.DataGridViewTextBoxColumn Result; private System.Windows.Forms.DataGridViewTextBoxColumn Time; private System.Windows.Forms.DataGridViewTextBoxColumn Information; private System.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.ToolStripMenuItem testMenu; } } |
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | using System.Data.Common; namespace test { public partial class TestCasesDialog : Form { private TestCases _test; public TestCasesDialog() { InitializeComponent(); using (DataTable tbl = DbProviderFactories.GetFactoryClasses()) { foreach (DataRow row in tbl.Rows) { string prov = row[2].ToString(); if (prov.IndexOf("SQLite", 0, StringComparison.OrdinalIgnoreCase) != -1 || prov.IndexOf("SqlClient", 0, StringComparison.OrdinalIgnoreCase) != -1 ) _provider.Items.Add(prov); if (prov == "System.Data.SQLite") _provider.SelectedItem = prov; } } _connectionString.Text = "Data Source=Test.db3;Pooling=true;FailIfMissing=false"; } private void runButton_Click(object sender, EventArgs e) { DbProviderFactory factory = DbProviderFactories.GetFactory(_provider.SelectedItem.ToString()); _test = new TestCases(factory, _connectionString.Text); _test.OnTestStarting += new TestStartingEvent(_test_OnTestStarting); _test.OnTestFinished += new TestCompletedEvent(_test_OnTestFinished); _test.OnAllTestsDone += new EventHandler(_test_OnAllTestsDone); _grid.Rows.Clear(); runButton.Enabled = false; System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(_threadFunc)); | > > > > > > > > > > > > > > > > > > | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | using System.Data.Common; namespace test { public partial class TestCasesDialog : Form { private TestCases _test; private TestCases _testitems; public TestCasesDialog() { InitializeComponent(); using (DataTable tbl = DbProviderFactories.GetFactoryClasses()) { foreach (DataRow row in tbl.Rows) { string prov = row[2].ToString(); if (prov.IndexOf("SQLite", 0, StringComparison.OrdinalIgnoreCase) != -1 || prov.IndexOf("SqlClient", 0, StringComparison.OrdinalIgnoreCase) != -1 ) _provider.Items.Add(prov); if (prov == "System.Data.SQLite") _provider.SelectedItem = prov; } } _connectionString.Text = "Data Source=Test.db3;Pooling=true;FailIfMissing=false"; _testitems = new TestCases(); foreach (KeyValuePair<string, bool> pair in _testitems.Tests) { ToolStripMenuItem item = (ToolStripMenuItem)testMenu.DropDownItems.Add(pair.Key, null, new EventHandler(_tests_Clicked)); item.Checked = true; item.CheckOnClick = true; } } void _tests_Clicked(object sender, EventArgs e) { ToolStripMenuItem item = sender as ToolStripMenuItem; if (item != null) _testitems.Tests[item.Text] = item.Checked; } private void runButton_Click(object sender, EventArgs e) { DbProviderFactory factory = DbProviderFactories.GetFactory(_provider.SelectedItem.ToString()); _test = new TestCases(factory, _connectionString.Text); _test.Tests = _testitems.Tests; _test.OnTestStarting += new TestStartingEvent(_test_OnTestStarting); _test.OnTestFinished += new TestCompletedEvent(_test_OnTestFinished); _test.OnAllTestsDone += new EventHandler(_test_OnAllTestsDone); _grid.Rows.Clear(); runButton.Enabled = false; System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(_threadFunc)); |
︙ | ︙ |
︙ | ︙ | |||
133 134 135 136 137 138 139 140 141 | <value>True</value> </metadata> <metadata name="Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="Information.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> </root> | > > > > > > > > > > > > > > > | 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | <value>True</value> </metadata> <metadata name="Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="Information.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="Test.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="Result.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="Time.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="Information.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> </metadata> <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> </root> |
cannot compute difference between binary files
︙ | ︙ | |||
53 54 55 56 57 58 59 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO | | | | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,62,0 PRODUCTVERSION 1,0,0,0 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x4L FILETYPE 0x1L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "Comments", "http://sqlite.phxsoftware.com" VALUE "FileDescription", "SQLite ADO.NET 2.0/3.5 Setup" VALUE "FileVersion", "1.0.62.0" VALUE "InternalName", "setup" VALUE "LegalCopyright", "Released to the public domain" VALUE "OriginalFilename", "setup.exe" VALUE "ProductName", "System.Data.SQLite" VALUE "ProductVersion", "1.0" END END |
︙ | ︙ |
cannot compute difference between binary files
︙ | ︙ | |||
76 77 78 79 80 81 82 83 84 85 86 87 88 89 | "Entry" { "MsmKey" = "8:_40F352185F3B41A485F42BFC64BF9162" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_5E1053CD325EBB535F3F247A35B38F2F" "OwnerKey" = "8:_CD3CE5CDAB13405EA6EAAADC95F88D2E" "MsmSig" = "8:_UNDEFINED" } "Entry" { | > > > > > > | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | "Entry" { "MsmKey" = "8:_40F352185F3B41A485F42BFC64BF9162" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_43992E7124B747F0A0D64B20FB4A7BF7" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_5E1053CD325EBB535F3F247A35B38F2F" "OwnerKey" = "8:_CD3CE5CDAB13405EA6EAAADC95F88D2E" "MsmSig" = "8:_UNDEFINED" } "Entry" { |
︙ | ︙ | |||
167 168 169 170 171 172 173 | { "MsmKey" = "8:_B6156897CBBB4E929D9C1F7358CE9E90" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { | | < < < < < < | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | { "MsmKey" = "8:_B6156897CBBB4E929D9C1F7358CE9E90" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_B9500B5CF9624631A94F42EE6019DB87" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_C8E329AC56AD4C88A986481E639F72A5" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_CD3CE5CDAB13405EA6EAAADC95F88D2E" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" |
︙ | ︙ | |||
231 232 233 234 235 236 237 | } "Entry" { "MsmKey" = "8:_D7FECFD3C8164DA7B3712AF54D0CDDAD" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } | < < < < < < | 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | } "Entry" { "MsmKey" = "8:_D7FECFD3C8164DA7B3712AF54D0CDDAD" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_E6DB5A9B08AC4645A19C948BBFDD0348" "OwnerKey" = "8:_CD3CE5CDAB13405EA6EAAADC95F88D2E" "MsmSig" = "8:_UNDEFINED" } "Entry" |
︙ | ︙ | |||
303 304 305 306 307 308 309 | } "Entry" { "MsmKey" = "8:_UNDEFINED" "OwnerKey" = "8:_CD3CE5CDAB13405EA6EAAADC95F88D2E" "MsmSig" = "8:_UNDEFINED" } | < < < < < < | 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | } "Entry" { "MsmKey" = "8:_UNDEFINED" "OwnerKey" = "8:_CD3CE5CDAB13405EA6EAAADC95F88D2E" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_UNDEFINED" "OwnerKey" = "8:_B00FB4712154B7A5894294702C96689D" "MsmSig" = "8:_UNDEFINED" } "Entry" |
︙ | ︙ | |||
648 649 650 651 652 653 654 | "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_2C7EDFF06B61482393D94E3A63D90113" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" | | | 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 | "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_2C7EDFF06B61482393D94E3A63D90113" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" "AssemblyAsmDisplayName" = "8:test, Version=1.0.0.23529, Culture=neutral, processorArchitecture=x86" "ScatterAssemblies" { "_2C7EDFF06B61482393D94E3A63D90113" { "Name" = "8:test.exe" "Attributes" = "3:512" } |
︙ | ︙ | |||
761 762 763 764 765 766 767 | "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_40DFF08BA903482D807E715A041CA8B1" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" | | | 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 | "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_40DFF08BA903482D807E715A041CA8B1" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" "AssemblyAsmDisplayName" = "8:install, Version=1.0.0.22252, Culture=neutral, processorArchitecture=x86" "ScatterAssemblies" { "_40DFF08BA903482D807E715A041CA8B1" { "Name" = "8:install.exe" "Attributes" = "3:512" } |
︙ | ︙ | |||
792 793 794 795 796 797 798 | "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_40F352185F3B41A485F42BFC64BF9162" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" | | > > > > > > > > > > > > > > > > > > > > | 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 | "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_40F352185F3B41A485F42BFC64BF9162" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" "AssemblyAsmDisplayName" = "8:testce, Version=1.0.0.23198, Culture=neutral, processorArchitecture=MSIL" "ScatterAssemblies" { "_40F352185F3B41A485F42BFC64BF9162" { "Name" = "8:testce.exe" "Attributes" = "3:512" } } "SourcePath" = "8:..\\..\\bin\\CompactFramework\\testce.exe" "TargetName" = "8:" "Tag" = "8:" "Folder" = "8:_10C8E86E2EEF451BB40F774C35C5466F" "Condition" = "8:" "Transitive" = "11:FALSE" "Vital" = "11:TRUE" "ReadOnly" = "11:FALSE" "Hidden" = "11:FALSE" "System" = "11:FALSE" "Permanent" = "11:FALSE" "SharedLegacy" = "11:FALSE" "PackageAs" = "3:1" "Register" = "3:1" "Exclude" = "11:FALSE" "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_43992E7124B747F0A0D64B20FB4A7BF7" { "SourcePath" = "8:..\\..\\bin\\CompactFramework\\SQLite.Interop.062.DLL" "TargetName" = "8:SQLite.Interop.062.DLL" "Tag" = "8:" "Folder" = "8:_10C8E86E2EEF451BB40F774C35C5466F" "Condition" = "8:" "Transitive" = "11:FALSE" "Vital" = "11:TRUE" "ReadOnly" = "11:FALSE" "Hidden" = "11:FALSE" |
︙ | ︙ | |||
925 926 927 928 929 930 931 | "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_A18DBDB7776215EAD9A52C96F8CA1E91" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" | | | 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 | "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_A18DBDB7776215EAD9A52C96F8CA1E91" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" "AssemblyAsmDisplayName" = "8:System.Data.SQLite, Version=1.0.62.0, Culture=neutral, PublicKeyToken=1fdb50b1b62b4c84, processorArchitecture=MSIL" "ScatterAssemblies" { "_A18DBDB7776215EAD9A52C96F8CA1E91" { "Name" = "8:System.Data.SQLite.DLL" "Attributes" = "3:512" } |
︙ | ︙ | |||
1065 1066 1067 1068 1069 1070 1071 | "SharedLegacy" = "11:FALSE" "PackageAs" = "3:1" "Register" = "3:1" "Exclude" = "11:TRUE" "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } | | | | | 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 | "SharedLegacy" = "11:FALSE" "PackageAs" = "3:1" "Register" = "3:1" "Exclude" = "11:TRUE" "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_B9500B5CF9624631A94F42EE6019DB87" { "SourcePath" = "8:..\\..\\bin\\CompactFramework\\SQLite.Interop.062.lib" "TargetName" = "8:SQLite.Interop.062.lib" "Tag" = "8:" "Folder" = "8:_10C8E86E2EEF451BB40F774C35C5466F" "Condition" = "8:" "Transitive" = "11:FALSE" "Vital" = "11:TRUE" "ReadOnly" = "11:FALSE" "Hidden" = "11:FALSE" |
︙ | ︙ | |||
1092 1093 1094 1095 1096 1097 1098 | "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C8E329AC56AD4C88A986481E639F72A5" { "SourcePath" = "8:..\\..\\readme.htm" "TargetName" = "8:readme.htm" "Tag" = "8:" "Folder" = "8:_A0841E79B7874F7288672343934C7657" "Condition" = "8:" | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 | "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C8E329AC56AD4C88A986481E639F72A5" { "SourcePath" = "8:..\\..\\readme.htm" "TargetName" = "8:readme.htm" "Tag" = "8:" "Folder" = "8:_A0841E79B7874F7288672343934C7657" "Condition" = "8:" "Transitive" = "11:FALSE" "Vital" = "11:TRUE" "ReadOnly" = "11:FALSE" "Hidden" = "11:FALSE" "System" = "11:FALSE" "Permanent" = "11:FALSE" "SharedLegacy" = "11:FALSE" |
︙ | ︙ | |||
1269 1270 1271 1272 1273 1274 1275 | "SharedLegacy" = "11:FALSE" "PackageAs" = "3:1" "Register" = "3:1" "Exclude" = "11:FALSE" "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } | < < < < < < < < < < < < < < < < < < < < | 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 | "SharedLegacy" = "11:FALSE" "PackageAs" = "3:1" "Register" = "3:1" "Exclude" = "11:FALSE" "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_E6DB5A9B08AC4645A19C948BBFDD0348" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:TRUE" "AssemblyAsmDisplayName" = "8:Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" "ScatterAssemblies" { |
︙ | ︙ | |||
1324 1325 1326 1327 1328 1329 1330 | "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_F320FBAE871DA320178BEEA242900CC7" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" | | | 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 | "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_F320FBAE871DA320178BEEA242900CC7" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" "AssemblyAsmDisplayName" = "8:System.Data.SQLite, Version=1.0.62.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=x86" "ScatterAssemblies" { "_F320FBAE871DA320178BEEA242900CC7" { "Name" = "8:System.Data.SQLite.DLL" "Attributes" = "3:512" } |
︙ | ︙ | |||
1483 1484 1485 1486 1487 1488 1489 | { "LangId" = "3:1033" "RequiresElevation" = "11:FALSE" } "Product" { "Name" = "8:Microsoft Visual Studio" | | | | | | | 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 | { "LangId" = "3:1033" "RequiresElevation" = "11:FALSE" } "Product" { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:SQLite ADO.NET 2.0/3.5 Provider" "ProductCode" = "8:{B307821D-7EF5-4406-B1EB-D6FBAA24F62C}" "PackageCode" = "8:{26ACA1D5-0F90-49CD-8EDD-9E2D7CA413FF}" "UpgradeCode" = "8:{78329A82-AFB1-453B-AF00-D46AC911DA89}" "RestartWWWService" = "11:FALSE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:TRUE" "ProductVersion" = "8:1.062.0" "Manufacturer" = "8:Phoenix Software Solutions, LLC" "ARPHELPTELEPHONE" = "8:" "ARPHELPLINK" = "8:http://sqlite.phxsoftware.com" "Title" = "8:SQLite ADO.NET 2.0/3.5 Provider" "Subject" = "8:" "ARPCONTACT" = "8:Phoenix Software Solutions, LLC" "Keywords" = "8:" "ARPCOMMENTS" = "8:" "ARPURLINFOABOUT" = "8:" "ARPPRODUCTICON" = "8:" "ARPIconIndex" = "3:0" |
︙ | ︙ |