System.Data.SQLite
Check-in [42798551ca]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add extended return codes to the SQLiteErrorCode enumeration. Pursuant to [71bedaca19].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 42798551ca839974edc4b2b51a90cfadd457aea9
User & Date: mistachkin 2015-07-13 19:51:09
References
2015-07-13
19:51 Closed ticket [71bedaca19]: Add enumeration for extended return codes plus 4 other changes artifact: 3fef8b81ec user: mistachkin
Context
2015-07-13
22:41
Add tests for ticket [71bedaca19]. check-in: 1ddef23eb9 user: mistachkin tags: trunk
19:51
Add extended return codes to the SQLiteErrorCode enumeration. Pursuant to [71bedaca19]. check-in: 42798551ca user: mistachkin tags: trunk
2015-07-11
08:06
Small HTML style fix for the previous check-in. check-in: 59e075a640 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Doc/Extra/Provider/version.html.

45
46
47
48
49
50
51

52
53
54
55
56
57
58
    <h1 class="heading">Version History</h1>
    <p><b>1.0.98.0 - August XX, 2015 <font color="red">(release scheduled)</font></b></p>
    <ul>
      <li>Updated to <a href="https://www.sqlite.org/draft/releaselog/3_8_11.html">SQLite 3.8.11</a>.</li>
      <li>Implement the Substring method for LINQ using the &quot;substr&quot; core SQL function.&nbsp;<b>** Potentially Incompatible Change **</b></li>
      <li>Remove errant semi-colons from the SQL used by LINQ to INSERT and then SELECT rows with composite primary keys. Fix for <a href="https://system.data.sqlite.org/index.html/info/9d353b0bd8">[9d353b0bd8]</a>.</li>
      <li>Change the base type for the SQLiteConnectionFlags enumeration to long integer.&nbsp;<b>** Potentially Incompatible Change **</b></li>

      <li>Improve exception handling in all native callbacks implemented in the SQLiteConnection class.</li>
      <li>Add Progress event and ProgressOps connection string property to enable raising progress events during long-running queries.</li>
      <li>Add VfsName connection string property to allow a non-default VFS to be used by the SQLite core library.</li>
      <li>Add BusyTimeout connection string property to set the busy timeout to be used by the SQLite core library.</li>
      <li>Enable integration with the <a href="http://www.hwaci.com/sw/sqlite/zipvfs.html">ZipVFS</a> extension.</li>
    </ul>
    <p><b>1.0.97.0 - May 26, 2015</b></p>







>







45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    <h1 class="heading">Version History</h1>
    <p><b>1.0.98.0 - August XX, 2015 <font color="red">(release scheduled)</font></b></p>
    <ul>
      <li>Updated to <a href="https://www.sqlite.org/draft/releaselog/3_8_11.html">SQLite 3.8.11</a>.</li>
      <li>Implement the Substring method for LINQ using the &quot;substr&quot; core SQL function.&nbsp;<b>** Potentially Incompatible Change **</b></li>
      <li>Remove errant semi-colons from the SQL used by LINQ to INSERT and then SELECT rows with composite primary keys. Fix for <a href="https://system.data.sqlite.org/index.html/info/9d353b0bd8">[9d353b0bd8]</a>.</li>
      <li>Change the base type for the SQLiteConnectionFlags enumeration to long integer.&nbsp;<b>** Potentially Incompatible Change **</b></li>
      <li>Add extended return codes to the SQLiteErrorCode enumeration. Pursuant to <a href="https://system.data.sqlite.org/index.html/info/71bedaca19">[71bedaca19]</a>.&nbsp;<b>** Potentially Incompatible Change **</b></li>
      <li>Improve exception handling in all native callbacks implemented in the SQLiteConnection class.</li>
      <li>Add Progress event and ProgressOps connection string property to enable raising progress events during long-running queries.</li>
      <li>Add VfsName connection string property to allow a non-default VFS to be used by the SQLite core library.</li>
      <li>Add BusyTimeout connection string property to set the busy timeout to be used by the SQLite core library.</li>
      <li>Enable integration with the <a href="http://www.hwaci.com/sw/sqlite/zipvfs.html">ZipVFS</a> extension.</li>
    </ul>
    <p><b>1.0.97.0 - May 26, 2015</b></p>

Changes to System.Data.SQLite/SQLiteException.cs.

328
329
330
331
332
333
334
335
336



337






















































































































































































































    /// <summary>
    /// sqlite3_step() has finished executing
    /// </summary>
    Done, /* 101 */
    /// <summary>
    /// Used to mask off extended result codes
    /// </summary>
    NonExtendedMask = 0xFF
  }



}





























































































































































































































|
|
>
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
    /// <summary>
    /// sqlite3_step() has finished executing
    /// </summary>
    Done, /* 101 */
    /// <summary>
    /// Used to mask off extended result codes
    /// </summary>
    NonExtendedMask = 0xFF,

    ///////////////////////////////////////////////////////////////////////////
    // BEGIN EXTENDED RESULT CODES
    ///////////////////////////////////////////////////////////////////////////

    /// <summary>
    /// A file read operation failed.
    /// </summary>
    IoErr_Read = (IoErr | (1 << 8)),
    /// <summary>
    /// A file read operation returned less data than requested.
    /// </summary>
    IoErr_Short_Read = (IoErr | (2 << 8)),
    /// <summary>
    /// A file write operation failed.
    /// </summary>
    IoErr_Write = (IoErr | (3 << 8)),
    /// <summary>
    /// A file synchronization operation failed.
    /// </summary>
    IoErr_Fsync = (IoErr | (4 << 8)),
    /// <summary>
    /// A directory synchronization operation failed.
    /// </summary>
    IoErr_Dir_Fsync = (IoErr | (5 << 8)),
    /// <summary>
    /// A file truncate operation failed.
    /// </summary>
    IoErr_Truncate = (IoErr | (6 << 8)),
    /// <summary>
    /// A file metadata operation failed.
    /// </summary>
    IoErr_Fstat = (IoErr | (7 << 8)),
    /// <summary>
    /// A file unlock operation failed.
    /// </summary>
    IoErr_Unlock = (IoErr | (8 << 8)),
    /// <summary>
    /// A file lock operation failed.
    /// </summary>
    IoErr_RdLock = (IoErr | (9 << 8)),
    /// <summary>
    /// A file delete operation failed.
    /// </summary>
    IoErr_Delete = (IoErr | (10 << 8)),
    /// <summary>
    /// Not currently used.
    /// </summary>
    IoErr_Blocked = (IoErr | (11 << 8)),
    /// <summary>
    /// Out-of-memory during a file operation.
    /// </summary>
    IoErr_NoMem = (IoErr | (12 << 8)),
    /// <summary>
    /// A file existence/status operation failed.
    /// </summary>
    IoErr_Access = (IoErr | (13 << 8)),
    /// <summary>
    /// A check for a reserved lock failed.
    /// </summary>
    IoErr_CheckReservedLock = (IoErr | (14 << 8)),
    /// <summary>
    /// A file lock operation failed.
    /// </summary>
    IoErr_Lock = (IoErr | (15 << 8)),
    /// <summary>
    /// A file close operation failed.
    /// </summary>
    IoErr_Close = (IoErr | (16 << 8)),
    /// <summary>
    /// A directory close operation failed.
    /// </summary>
    IoErr_Dir_Close = (IoErr | (17 << 8)),
    /// <summary>
    /// A shared memory open operation failed.
    /// </summary>
    IoErr_ShmOpen = (IoErr | (18 << 8)),
    /// <summary>
    /// A shared memory size operation failed.
    /// </summary>
    IoErr_ShmSize = (IoErr | (19 << 8)),
    /// <summary>
    /// A shared memory lock operation failed.
    /// </summary>
    IoErr_ShmLock = (IoErr | (20 << 8)),
    /// <summary>
    /// A shared memory map operation failed.
    /// </summary>
    IoErr_ShmMap = (IoErr | (21 << 8)),
    /// <summary>
    /// A file seek operation failed.
    /// </summary>
    IoErr_Seek = (IoErr | (22 << 8)),
    /// <summary>
    /// A file delete operation failed because it does not exist.
    /// </summary>
    IoErr_Delete_NoEnt = (IoErr | (23 << 8)),
    /// <summary>
    /// A file memory mapping operation failed.
    /// </summary>
    IoErr_Mmap = (IoErr | (24 << 8)),
    /// <summary>
    /// The temporary directory path could not be obtained.
    /// </summary>
    IoErr_GetTempPath = (IoErr | (25 << 8)),
    /// <summary>
    /// A path string conversion operation failed.
    /// </summary>
    IoErr_ConvPath = (IoErr | (26 << 8)),
    /// <summary>
    /// A database table is locked in shared-cache mode.
    /// </summary>
    Locked_SharedCache = (Locked | (1 << 8)),
    /// <summary>
    /// A database file is locked due to a recovery operation.
    /// </summary>
    Busy_Recovery = (Busy | (1 << 8)),
    /// <summary>
    /// A database file is locked due to snapshot semantics.
    /// </summary>
    Busy_Snapshot = (Busy | (2 << 8)),
    /// <summary>
    /// A database file cannot be opened because no temporary directory is available.
    /// </summary>
    CantOpen_NoTempDir = (CantOpen | (1 << 8)),
    /// <summary>
    /// A database file cannot be opened because its path represents a directory.
    /// </summary>
    CantOpen_IsDir = (CantOpen | (2 << 8)),
    /// <summary>
    /// A database file cannot be opened because its full path could not be obtained.
    /// </summary>
    CantOpen_FullPath = (CantOpen | (3 << 8)),
    /// <summary>
    /// A database file cannot be opened because a path string conversion operation failed.
    /// </summary>
    CantOpen_ConvPath = (CantOpen | (4 << 8)),
    /// <summary>
    /// A virtual table is malformed.
    /// </summary>
    Corrupt_Vtab = (Corrupt | (1 << 8)),
    /// <summary>
    /// A database file is read-only due to a recovery operation.
    /// </summary>
    ReadOnly_Recovery = (ReadOnly | (1 << 8)),
    /// <summary>
    /// A database file is read-only because a lock could not be obtained.
    /// </summary>
    ReadOnly_CantLock = (ReadOnly | (2 << 8)),
    /// <summary>
    /// A database file is read-only because it needs rollback processing.
    /// </summary>
    ReadOnly_Rollback = (ReadOnly | (3 << 8)),
    /// <summary>
    /// A database file is read-only because it was moved while open.
    /// </summary>
    ReadOnly_DbMoved = (ReadOnly | (4 << 8)),
    /// <summary>
    /// An operation is being aborted due to rollback processing.
    /// </summary>
    Abort_Rollback = (Abort | (2 << 8)),
    /// <summary>
    /// A CHECK constraint failed.
    /// </summary>
    Constraint_Check = (Constraint | (1 << 8)),
    /// <summary>
    /// A commit hook produced a unsuccessful return code.
    /// </summary>
    Constraint_CommitHook = (Constraint | (2 << 8)),
    /// <summary>
    /// A FOREIGN KEY constraint failed.
    /// </summary>
    Constraint_ForeignKey = (Constraint | (3 << 8)),
    /// <summary>
    /// Not currently used.
    /// </summary>
    Constraint_Function = (Constraint | (4 << 8)),
    /// <summary>
    /// A NOT NULL constraint failed.
    /// </summary>
    Constraint_NotNull = (Constraint | (5 << 8)),
    /// <summary>
    /// A PRIMARY KEY constraint failed.
    /// </summary>
    Constraint_PrimaryKey = (Constraint | (6 << 8)),
    /// <summary>
    /// The RAISE function was used by a trigger-program.
    /// </summary>
    Constraint_Trigger = (Constraint | (7 << 8)),
    /// <summary>
    /// A UNIQUE constraint failed.
    /// </summary>
    Constraint_Unique = (Constraint | (8 << 8)),
    /// <summary>
    /// Not currently used.
    /// </summary>
    Constraint_Vtab = (Constraint | (9 << 8)),
    /// <summary>
    /// A ROWID constraint failed.
    /// </summary>
    Constraint_RowId = (Constraint | (10 << 8)),
    /// <summary>
    /// Frames were recovered from the WAL log file.
    /// </summary>
    Notice_Recover_Wal = (Notice | (1 << 8)),
    /// <summary>
    /// Pages were recovered from the journal file.
    /// </summary>
    Notice_Recover_Rollback = (Notice | (2 << 8)),
    /// <summary>
    /// An automatic index was created to process a query.
    /// </summary>
    Warning_AutoIndex = (Warning | (1 << 8)),
    /// <summary>
    /// User authentication failed.
    /// </summary>
    Auth_User = (Auth | (1 << 8))
  }
}

Changes to readme.htm.

212
213
214
215
216
217
218

219
220
221
222
223
224
225
    <b>1.0.98.0 - August XX, 2015 <font color="red">(release scheduled)</font></b>
</p>
<ul>
    <li>Updated to <a href="https://www.sqlite.org/draft/releaselog/3_8_11.html">SQLite 3.8.11</a>.</li>
    <li>Implement the Substring method for LINQ using the &quot;substr&quot; core SQL function.&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Remove errant semi-colons from the SQL used by LINQ to INSERT and then SELECT rows with composite primary keys. Fix for [9d353b0bd8].</li>
    <li>Change the base type for the SQLiteConnectionFlags enumeration to long integer.&nbsp;<b>** Potentially Incompatible Change **</b></li>

    <li>Improve exception handling in all native callbacks implemented in the SQLiteConnection class.</li>
    <li>Add Progress event and ProgressOps connection string property to enable raising progress events during long-running queries.</li>
    <li>Add VfsName connection string property to allow a non-default VFS to be used by the SQLite core library.</li>
    <li>Add BusyTimeout connection string property to set the busy timeout to be used by the SQLite core library.</li>
    <li>Enable integration with the <a href="http://www.hwaci.com/sw/sqlite/zipvfs.html">ZipVFS</a> extension.</li>
</ul>
<p>







>







212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
    <b>1.0.98.0 - August XX, 2015 <font color="red">(release scheduled)</font></b>
</p>
<ul>
    <li>Updated to <a href="https://www.sqlite.org/draft/releaselog/3_8_11.html">SQLite 3.8.11</a>.</li>
    <li>Implement the Substring method for LINQ using the &quot;substr&quot; core SQL function.&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Remove errant semi-colons from the SQL used by LINQ to INSERT and then SELECT rows with composite primary keys. Fix for [9d353b0bd8].</li>
    <li>Change the base type for the SQLiteConnectionFlags enumeration to long integer.&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Add extended return codes to the SQLiteErrorCode enumeration. Pursuant to [71bedaca19].&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Improve exception handling in all native callbacks implemented in the SQLiteConnection class.</li>
    <li>Add Progress event and ProgressOps connection string property to enable raising progress events during long-running queries.</li>
    <li>Add VfsName connection string property to allow a non-default VFS to be used by the SQLite core library.</li>
    <li>Add BusyTimeout connection string property to set the busy timeout to be used by the SQLite core library.</li>
    <li>Enable integration with the <a href="http://www.hwaci.com/sw/sqlite/zipvfs.html">ZipVFS</a> extension.</li>
</ul>
<p>

Changes to www/news.wiki.

6
7
8
9
10
11
12

13
14
15
16
17
18
19
    <b>1.0.98.0 - August XX, 2015 <font color="red">(release scheduled)</font></b>
</p>
<ul>
    <li>Updated to [https://www.sqlite.org/draft/releaselog/3_8_11.html|SQLite 3.8.11].</li>
    <li>Implement the Substring method for LINQ using the &quot;substr&quot; core SQL function.&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Remove errant semi-colons from the SQL used by LINQ to INSERT and then SELECT rows with composite primary keys. Fix for [9d353b0bd8].</li>
    <li>Change the base type for the SQLiteConnectionFlags enumeration to long integer.&nbsp;<b>** Potentially Incompatible Change **</b></li>

    <li>Improve exception handling in all native callbacks implemented in the SQLiteConnection class.</li>
    <li>Add Progress event and ProgressOps connection string property to enable raising progress events during long-running queries.</li>
    <li>Add VfsName connection string property to allow a non-default VFS to be used by the SQLite core library.</li>
    <li>Add BusyTimeout connection string property to set the busy timeout to be used by the SQLite core library.</li>
    <li>Enable integration with the [http://www.hwaci.com/sw/sqlite/zipvfs.html|ZipVFS] extension.</li>
</ul>
<p>







>







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    <b>1.0.98.0 - August XX, 2015 <font color="red">(release scheduled)</font></b>
</p>
<ul>
    <li>Updated to [https://www.sqlite.org/draft/releaselog/3_8_11.html|SQLite 3.8.11].</li>
    <li>Implement the Substring method for LINQ using the &quot;substr&quot; core SQL function.&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Remove errant semi-colons from the SQL used by LINQ to INSERT and then SELECT rows with composite primary keys. Fix for [9d353b0bd8].</li>
    <li>Change the base type for the SQLiteConnectionFlags enumeration to long integer.&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Add extended return codes to the SQLiteErrorCode enumeration. Pursuant to [71bedaca19].&nbsp;<b>** Potentially Incompatible Change **</b></li>
    <li>Improve exception handling in all native callbacks implemented in the SQLiteConnection class.</li>
    <li>Add Progress event and ProgressOps connection string property to enable raising progress events during long-running queries.</li>
    <li>Add VfsName connection string property to allow a non-default VFS to be used by the SQLite core library.</li>
    <li>Add BusyTimeout connection string property to set the busy timeout to be used by the SQLite core library.</li>
    <li>Enable integration with the [http://www.hwaci.com/sw/sqlite/zipvfs.html|ZipVFS] extension.</li>
</ul>
<p>