Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add null connection parameter check to the new property access in Prepare. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | windowFunc |
Files: | files | file ages | folders |
SHA1: |
e63b215582476c6bedad519876507774 |
User & Date: | mistachkin 2022-07-20 19:46:28.689 |
Context
2022-07-20
| ||
19:50 | Fix typo. check-in: 6df055d637 user: mistachkin tags: windowFunc | |
19:46 | Add null connection parameter check to the new property access in Prepare. check-in: e63b215582 user: mistachkin tags: windowFunc | |
19:35 | Further refinements. check-in: 8f81d1b191 user: mistachkin tags: windowFunc | |
Changes
Changes to System.Data.SQLite/SQLite3.cs.
︙ | ︙ | |||
1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 | IntPtr stmt = IntPtr.Zero; IntPtr ptr = IntPtr.Zero; int len = 0; SQLiteErrorCode n = SQLiteErrorCode.Schema; int retries = 0; int maximumRetries = (cnn != null) ? cnn._prepareRetries : SQLiteConnection.DefaultPrepareRetries; byte[] b = ToUTF8(strSql); string typedefs = null; SQLiteStatement cmd = null; Random rnd = null; uint starttick = (uint)Environment.TickCount; | > < | 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 | IntPtr stmt = IntPtr.Zero; IntPtr ptr = IntPtr.Zero; int len = 0; SQLiteErrorCode n = SQLiteErrorCode.Schema; int retries = 0; int maximumRetries = (cnn != null) ? cnn._prepareRetries : SQLiteConnection.DefaultPrepareRetries; int maximumSleepTime = (cnn != null) ? cnn._defaultMaximumSleepTime : SQLiteConnection.DefaultConnectionMaximumSleepTime; byte[] b = ToUTF8(strSql); string typedefs = null; SQLiteStatement cmd = null; Random rnd = null; uint starttick = (uint)Environment.TickCount; ResetCancelCount(); GCHandle handle = GCHandle.Alloc(b, GCHandleType.Pinned); IntPtr psql = handle.AddrOfPinnedObject(); SQLiteStatementHandle statementHandle = null; try |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteConnection.cs.
︙ | ︙ | |||
1379 1380 1381 1382 1383 1384 1385 | private const string DefaultPassword = null; private const int DefaultVersion = 3; private const int DefaultPageSize = 4096; private const int DefaultMaxPageCount = 0; private const int DefaultCacheSize = -2000; private const int DefaultMaxPoolSize = 100; private const int DefaultConnectionTimeout = 30; | | | 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 | private const string DefaultPassword = null; private const int DefaultVersion = 3; private const int DefaultPageSize = 4096; private const int DefaultMaxPageCount = 0; private const int DefaultCacheSize = -2000; private const int DefaultMaxPoolSize = 100; private const int DefaultConnectionTimeout = 30; internal const int DefaultConnectionMaximumSleepTime = 150; private const int DefaultBusyTimeout = 0; private const int DefaultWaitTimeout = 30000; private const bool DefaultNoDefaultFlags = false; private const bool DefaultNoSharedFlags = false; private const bool DefaultFailIfMissing = false; private const bool DefaultReadOnly = false; internal const bool DefaultBinaryGUID = true; |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteFunction.cs.
︙ | ︙ | |||
150 151 152 153 154 155 156 | /// </summary> private SQLiteCallback _InvokeFunc; /// <summary> /// Holds a reference to the callback function for stepping in an aggregate function /// </summary> private SQLiteCallback _StepFunc; /// <summary> | < < < < > > > > | 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | /// </summary> private SQLiteCallback _InvokeFunc; /// <summary> /// Holds a reference to the callback function for stepping in an aggregate function /// </summary> private SQLiteCallback _StepFunc; /// <summary> /// Holds a reference to the callback function for finalizing an aggregate function /// </summary> private SQLiteFinalCallback _FinalFunc; /// <summary> /// Holds a reference to the callback function for getting a window function value /// </summary> private SQLiteFinalCallback _ValueFunc; /// <summary> /// Holds a reference to the callback function for inverse in a window function /// </summary> private SQLiteCallback _InverseFunc; /// <summary> /// Holds a reference to the callback function for collating sequences /// </summary> private SQLiteCollation _CompareFunc; private SQLiteCollation _CompareFunc16; |
︙ | ︙ |