Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Make the fix for [e1b2e0f769] more robust for corner cases. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
ce4f34e1900e455d6b72ceb77adf2c74 |
User & Date: | mistachkin 2011-07-08 10:22:29.216 |
Context
2011-07-08
| ||
10:24 | Enhancements to unit test infrastructure to enable profiling. check-in: 0c6f84763c user: mistachkin tags: trunk | |
10:22 | Make the fix for [e1b2e0f769] more robust for corner cases. check-in: ce4f34e190 user: mistachkin tags: trunk | |
2011-07-07
| ||
10:05 | Isolate the hard-coding of the VS designer version number. Normalize all the project web site URLs to end with a slash. check-in: 20d41af53e user: mistachkin tags: trunk | |
Changes
Changes to System.Data.SQLite/SQLite3.cs.
︙ | ︙ | |||
114 115 116 117 118 119 120 121 122 123 124 125 126 127 | /// </summary> /// <returns>Returns a result code</returns> internal override int Shutdown() { int rc = UnsafeNativeMethods.sqlite3_shutdown(); return rc; } internal override void Open(string strFilename, SQLiteOpenFlagsEnum flags, int maxPoolSize, bool usePool) { if (_sql != null) return; _usePool = usePool; if (usePool) | > > > > > | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | /// </summary> /// <returns>Returns a result code</returns> internal override int Shutdown() { int rc = UnsafeNativeMethods.sqlite3_shutdown(); return rc; } internal override bool IsOpen() { return (_sql != null); } internal override void Open(string strFilename, SQLiteOpenFlagsEnum flags, int maxPoolSize, bool usePool) { if (_sql != null) return; _usePool = usePool; if (usePool) |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteBase.cs.
︙ | ︙ | |||
29 30 31 32 33 34 35 36 37 38 39 40 41 42 | /// </summary> internal abstract int Changes { get; } /// <summary> /// Shutdown the SQLite engine so that it can be restarted with different config options. /// We depend on auto initialization to recover. /// </summary> internal abstract int Shutdown(); /// <summary> /// Opens a database. /// </summary> /// <remarks> /// Implementers should call SQLiteFunction.BindFunctions() and save the array after opening a connection /// to bind all attributed user-defined functions and collating sequences to the new connection. /// </remarks> | > > > > > | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | /// </summary> internal abstract int Changes { get; } /// <summary> /// Shutdown the SQLite engine so that it can be restarted with different config options. /// We depend on auto initialization to recover. /// </summary> internal abstract int Shutdown(); /// <summary> /// Returns non-zero if a database connection is open. /// </summary> /// <returns></returns> internal abstract bool IsOpen(); /// <summary> /// Opens a database. /// </summary> /// <remarks> /// Implementers should call SQLiteFunction.BindFunctions() and save the array after opening a connection /// to bind all attributed user-defined functions and collating sequences to the new connection. /// </remarks> |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteDataReader.cs.
︙ | ︙ | |||
880 881 882 883 884 885 886 | CheckClosed(); SQLiteStatement stmt = null; int fieldCount; while (true) { | | | 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 | CheckClosed(); SQLiteStatement stmt = null; int fieldCount; while (true) { if (stmt == null && _activeStatement != null && _activeStatement._sql != null && _activeStatement._sql.IsOpen()) { // Reset the previously-executed statement _activeStatement._sql.Reset(_activeStatement); // If we're only supposed to return a single rowset, step through all remaining statements once until // they are all done and return false to indicate no more resultsets exist. if ((_commandBehavior & CommandBehavior.SingleResult) != 0) |
︙ | ︙ |