Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Merge updates from trunk. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | preRelease |
Files: | files | file ages | folders |
SHA1: |
3e7ed06ca5c749442f23a52b2d815e6c |
User & Date: | mistachkin 2015-02-20 19:15:12.794 |
Context
2015-02-23
| ||
18:05 | Merge updates from trunk. check-in: f1f772dbd0 user: mistachkin tags: preRelease | |
2015-02-20
| ||
19:15 | Merge updates from trunk. check-in: 3e7ed06ca5 user: mistachkin tags: preRelease | |
19:14 | Update the master release archive manifest. check-in: 6fb0f14b81 user: mistachkin tags: trunk | |
2015-02-13
| ||
21:31 | Merge updates from trunk. check-in: 63d2c28b37 user: mistachkin tags: preRelease | |
Changes
Changes to Doc/Extra/Provider/version.html.
︙ | ︙ | |||
62 63 64 65 66 67 68 69 70 71 72 73 74 75 | <li>Make sure the interop files are copied when publishing a project that refers to a NuGet package containing them. Fix for <a href="https://system.data.sqlite.org/index.html/info/e796ac82c1">[e796ac82c1]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Make sure the interop files are copied before the PostBuildEvent. Fix for <a href="https://system.data.sqlite.org/index.html/info/f16c93a932">[f16c93a932]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Modify GetSchemaTable method to avoid setting SchemaTableColumn.IsKey column to true when more than one table is referenced. Fix for <a href="https://system.data.sqlite.org/index.html/info/47c6fa04d3">[47c6fa04d3]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Add AppendManifestToken_SQLiteProviderManifest environment variable to enable better integration between LINQ and the underlying store connection.</li> <li>Add SQLite_ForceLogPrepare environment variable to force logging of all prepared SQL regardless of the flags for the associated connection.</li> <li>Honor the DateTimeFormat, DateTimeKind, DateTimeFormatString, BinaryGUID connection string and/or provider manifest token properties from within the LINQ assembly. Fix for <a href="https://system.data.sqlite.org/index.html/info/8d928c3e88">[8d928c3e88]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Add PrepareRetries connection string property to allow the maximum number of retries when preparing a query to be overridden. Fix for <a href="https://system.data.sqlite.org/index.html/info/647d282d11">[647d282d11]</a>.</li> </ul> <p><b>1.0.94.0 - September 9, 2014</b></p> <ul> <li>Updated to <a href="https://www.sqlite.org/releaselog/3_8_6.html">SQLite 3.8.6</a>.</li> <li>Updated to <a href="https://www.nuget.org/packages/EntityFramework/6.1.1">Entity Framework 6.1.1</a>.</li> <li>Refactor and simplify NuGet packages in order to support per-solution SQLite interop assembly files. <b>** Potentially Incompatible Change **</b></li> <li>Add RefreshFlags method to the SQLiteDataReader class to forcibly refresh its connection flags.</li> | > | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | <li>Make sure the interop files are copied when publishing a project that refers to a NuGet package containing them. Fix for <a href="https://system.data.sqlite.org/index.html/info/e796ac82c1">[e796ac82c1]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Make sure the interop files are copied before the PostBuildEvent. Fix for <a href="https://system.data.sqlite.org/index.html/info/f16c93a932">[f16c93a932]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Modify GetSchemaTable method to avoid setting SchemaTableColumn.IsKey column to true when more than one table is referenced. Fix for <a href="https://system.data.sqlite.org/index.html/info/47c6fa04d3">[47c6fa04d3]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Add AppendManifestToken_SQLiteProviderManifest environment variable to enable better integration between LINQ and the underlying store connection.</li> <li>Add SQLite_ForceLogPrepare environment variable to force logging of all prepared SQL regardless of the flags for the associated connection.</li> <li>Honor the DateTimeFormat, DateTimeKind, DateTimeFormatString, BinaryGUID connection string and/or provider manifest token properties from within the LINQ assembly. Fix for <a href="https://system.data.sqlite.org/index.html/info/8d928c3e88">[8d928c3e88]</a>. <b>** Potentially Incompatible Change **</b></li> <li>Add PrepareRetries connection string property to allow the maximum number of retries when preparing a query to be overridden. Fix for <a href="https://system.data.sqlite.org/index.html/info/647d282d11">[647d282d11]</a>.</li> <li>Add BindDateTimeWithKind connection flag to force DateTime parameter values to match the DateTimeKind associated with the connection, if applicable. Fix for <a href="https://system.data.sqlite.org/index.html/info/a7d04fb111">[a7d04fb111]</a>.</li> </ul> <p><b>1.0.94.0 - September 9, 2014</b></p> <ul> <li>Updated to <a href="https://www.sqlite.org/releaselog/3_8_6.html">SQLite 3.8.6</a>.</li> <li>Updated to <a href="https://www.nuget.org/packages/EntityFramework/6.1.1">Entity Framework 6.1.1</a>.</li> <li>Refactor and simplify NuGet packages in order to support per-solution SQLite interop assembly files. <b>** Potentially Incompatible Change **</b></li> <li>Add RefreshFlags method to the SQLiteDataReader class to forcibly refresh its connection flags.</li> |
︙ | ︙ |
Changes to Externals/Eagle/lib/Eagle1.0/vendor.eagle.
︙ | ︙ | |||
240 241 242 243 244 245 246 247 248 249 250 251 252 | # # HACK: Prevent the Eagle core test suite infrastructure from checking # test constraints that are time-consuming and/or most likely to # be superfluous to third-party test suites (i.e. those that are # not testing the Eagle core library itself). # set no(core) 1 } } ############################################################################### ############################### END VENDOR CODE ############################### ############################################################################### | > > > > > > > > | 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | # # HACK: Prevent the Eagle core test suite infrastructure from checking # test constraints that are time-consuming and/or most likely to # be superfluous to third-party test suites (i.e. those that are # not testing the Eagle core library itself). # set no(core) 1 # # NOTE: Make the per-test connection flag output a little less noisy. # set no(emitLocalFlagsIfNone) 1 set no(emitSharedFlagsIfNone) 1 set no(emitGlobalFlagsIfNone) 1 set no(emitCombinedFlagsIfNone) 1 } } ############################################################################### ############################### END VENDOR CODE ############################### ############################################################################### |
Changes to Setup/data/verify.lst.
︙ | ︙ | |||
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 | Tests/tkt-48a6b8e4ca.eagle Tests/tkt-4a791e70ab.eagle Tests/tkt-544dba0a2f.eagle Tests/tkt-56b42d99c1.eagle Tests/tkt-58ed318f2f.eagle Tests/tkt-59edc1018b.eagle Tests/tkt-6434e23a0f.eagle Tests/tkt-6c6ecccc5f.eagle Tests/tkt-72905c9a77.eagle Tests/tkt-7e3fa93744.eagle Tests/tkt-84718e79fa.eagle Tests/tkt-8554170e09.eagle Tests/tkt-85b824b736.eagle Tests/tkt-8b7d179c3c.eagle Tests/tkt-8c3bee31c8.eagle Tests/tkt-8d928c3e88.eagle Tests/tkt-996d13cd87.eagle Tests/tkt-9ba9346f75.eagle Tests/tkt-aba4549801.eagle Tests/tkt-ac47dd230a.eagle Tests/tkt-ae5267b863.eagle Tests/tkt-b4a7ddc83f.eagle Tests/tkt-bb4b04d457.eagle Tests/tkt-c010fa6584.eagle Tests/tkt-ccfa69fc32.eagle | > > | 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 | Tests/tkt-48a6b8e4ca.eagle Tests/tkt-4a791e70ab.eagle Tests/tkt-544dba0a2f.eagle Tests/tkt-56b42d99c1.eagle Tests/tkt-58ed318f2f.eagle Tests/tkt-59edc1018b.eagle Tests/tkt-6434e23a0f.eagle Tests/tkt-647d282d11.eagle Tests/tkt-6c6ecccc5f.eagle Tests/tkt-72905c9a77.eagle Tests/tkt-7e3fa93744.eagle Tests/tkt-84718e79fa.eagle Tests/tkt-8554170e09.eagle Tests/tkt-85b824b736.eagle Tests/tkt-8b7d179c3c.eagle Tests/tkt-8c3bee31c8.eagle Tests/tkt-8d928c3e88.eagle Tests/tkt-996d13cd87.eagle Tests/tkt-9ba9346f75.eagle Tests/tkt-a7d04fb111.eagle Tests/tkt-aba4549801.eagle Tests/tkt-ac47dd230a.eagle Tests/tkt-ae5267b863.eagle Tests/tkt-b4a7ddc83f.eagle Tests/tkt-bb4b04d457.eagle Tests/tkt-c010fa6584.eagle Tests/tkt-ccfa69fc32.eagle |
︙ | ︙ |
Changes to System.Data.SQLite/SQLite3.cs.
︙ | ︙ | |||
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 | #if !PLATFORM_COMPACTFRAMEWORK if ((flags & SQLiteConnectionFlags.LogBind) == SQLiteConnectionFlags.LogBind) { LogBind(handle, index, dt); } #endif switch (_datetimeFormat) { case SQLiteDateFormats.Ticks: { long value = dt.Ticks; | > > > > > > > > > > > > > | 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 | #if !PLATFORM_COMPACTFRAMEWORK if ((flags & SQLiteConnectionFlags.LogBind) == SQLiteConnectionFlags.LogBind) { LogBind(handle, index, dt); } #endif if ((flags & SQLiteConnectionFlags.BindDateTimeWithKind) == SQLiteConnectionFlags.BindDateTimeWithKind) { if ((_datetimeKind != DateTimeKind.Unspecified) && (dt.Kind != DateTimeKind.Unspecified) && (dt.Kind != _datetimeKind)) { if (_datetimeKind == DateTimeKind.Utc) dt = dt.ToUniversalTime(); else if (_datetimeKind == DateTimeKind.Local) dt = dt.ToLocalTime(); } } switch (_datetimeFormat) { case SQLiteDateFormats.Ticks: { long value = dt.Ticks; |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteBase.cs.
︙ | ︙ | |||
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 | /// properties are not set explicitly nor set via their connection /// string properties and repeated calls to determine these runtime /// configuration settings are seen to be a problem, this flag /// should be set.</b> /// </summary> NoConvertSettings = 0x8000000, /// <summary> /// When binding parameter values or returning column values, always /// treat them as though they were plain text (i.e. no numeric, /// date/time, or other conversions should be attempted). /// </summary> BindAndGetAllAsText = BindAllAsText | GetAllAsText, | > > > > > > > | 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 | /// properties are not set explicitly nor set via their connection /// string properties and repeated calls to determine these runtime /// configuration settings are seen to be a problem, this flag /// should be set.</b> /// </summary> NoConvertSettings = 0x8000000, /// <summary> /// When binding parameter values with the <see cref="DateTime" /> /// type, take their <see cref="DateTimeKind" /> into account as /// well as that of the associated <see cref="SQLiteConnection" />. /// </summary> BindDateTimeWithKind = 0x10000000, /// <summary> /// When binding parameter values or returning column values, always /// treat them as though they were plain text (i.e. no numeric, /// date/time, or other conversions should be attempted). /// </summary> BindAndGetAllAsText = BindAllAsText | GetAllAsText, |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteConnection.cs.
︙ | ︙ | |||
2324 2325 2326 2327 2328 2329 2330 | /// was encountered. /// </returns> private static byte[] FromHexString( string text, ref string error ) { | | | | 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 | /// was encountered. /// </returns> private static byte[] FromHexString( string text, ref string error ) { if (text == null) { error = "string is null"; return null; } if (text.Length % 2 != 0) { error = "string contains an odd number of characters"; return null; |
︙ | ︙ | |||
2587 2588 2589 2590 2591 2592 2593 | _sql.Open(fileName, _flags, flags, maxPoolSize, usePooling); _binaryGuid = SQLiteConvert.ToBoolean(FindKey(opts, "BinaryGUID", DefaultBinaryGUID.ToString())); #if INTEROP_CODEC || INTEROP_INCLUDE_SEE string hexPassword = FindKey(opts, "HexPassword", DefaultHexPassword); | | | | 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 | _sql.Open(fileName, _flags, flags, maxPoolSize, usePooling); _binaryGuid = SQLiteConvert.ToBoolean(FindKey(opts, "BinaryGUID", DefaultBinaryGUID.ToString())); #if INTEROP_CODEC || INTEROP_INCLUDE_SEE string hexPassword = FindKey(opts, "HexPassword", DefaultHexPassword); if (hexPassword != null) { string error = null; byte[] hexPasswordBytes = FromHexString(hexPassword, ref error); if (hexPasswordBytes == null) { throw new FormatException(String.Format( CultureInfo.CurrentCulture, "Cannot parse 'HexPassword' property value into byte values: {0}", error)); } _sql.SetPassword(hexPasswordBytes); } else { string password = FindKey(opts, "Password", DefaultPassword); if (password != null) _sql.SetPassword(UTF8Encoding.UTF8.GetBytes(password)); else if (_password != null) _sql.SetPassword(_password); } _password = null; #endif |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteConvert.cs.
︙ | ︙ |
Changes to Tests/common.eagle.
︙ | ︙ | |||
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 | # NOTE: If the primary assembly also contains the native components, # we have everything we need. # if {$native} then { return true } # # NOTE: Build the fully qualified file name for the interop assembly # containing the System.Data.SQLite native components. If this # file exists, we should have everything we need. # set fileName [file nativename [file join $directory \ SQLite.Interop.dll]] if {[file exists $fileName]} then { return true } # # NOTE: Build the fully qualified file name for the SQLite core # library. If this file exists, we should have everything we # need. # set fileName [file nativename [file join $directory \ sqlite3.dll]] if {[file exists $fileName]} then { return true } | > > > > > > > > > > > > > > > > > > > | 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 | # NOTE: If the primary assembly also contains the native components, # we have everything we need. # if {$native} then { return true } # # NOTE: What is the platform for this machine? # set platform [machineToPlatform $::tcl_platform(machine)] # # NOTE: Build the fully qualified file name for the interop assembly # containing the System.Data.SQLite native components. If this # file exists, we should have everything we need. # set fileName [file nativename [file join $directory \ $platform SQLite.Interop.dll]] if {[file exists $fileName]} then { return true } set fileName [file nativename [file join $directory \ SQLite.Interop.dll]] if {[file exists $fileName]} then { return true } # # NOTE: Build the fully qualified file name for the SQLite core # library. If this file exists, we should have everything we # need. # set fileName [file nativename [file join $directory \ $platform sqlite3.dll]] if {[file exists $fileName]} then { return true } set fileName [file nativename [file join $directory \ sqlite3.dll]] if {[file exists $fileName]} then { return true } |
︙ | ︙ | |||
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 | try { return [uplevel 1 [list \ sql execute -execute $execute -format $format $db $sql]] } finally { cleanupDb $fileName db false false false } } proc getConnectionFlags { fileName flags {quiet false} } { # # NOTE: Figure out which database file name or connection string these # connection flags will actually apply to. This is not necessary # in quiet mode because this information is only used for logging # and reporting purposes. | > > > > > > > > > > > > > > > > > > | 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 | try { return [uplevel 1 [list \ sql execute -execute $execute -format $format $db $sql]] } finally { cleanupDb $fileName db false false false } } proc hasNoFlags { varName none } { upvar 1 $varName flags if {![info exists flags]} then { return true } if {[string length $flags] == 0} then { return true } if {$none && $flags eq "None"} then { return true } return false } proc getConnectionFlags { fileName flags {quiet false} } { # # NOTE: Figure out which database file name or connection string these # connection flags will actually apply to. This is not necessary # in quiet mode because this information is only used for logging # and reporting purposes. |
︙ | ︙ | |||
1576 1577 1578 1579 1580 1581 1582 | } # # NOTE: Show (and log) the local connection flags and the associated # data source or file name. # if {!$quiet} then { | > > > | | | | > > > > | | | < | > > > | | | > | < > > > | | | < | > > > > | | | | > | 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 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 | } # # NOTE: Show (and log) the local connection flags and the associated # data source or file name. # if {!$quiet} then { if {![info exists ::no(emitLocalFlags)] && \ (![info exists ::no(emitLocalFlagsIfNone)] || \ ![hasNoFlags flags false])} then { tputs $::test_channel [appendArgs \ "---- local connection flags for " $database \ " are: " [expr {![hasNoFlags flags false] ? \ [appendArgs \" $flags \"] : "<none>"}] \n] } } # # NOTE: Show (and log) the shared connection flags. # if {!$quiet} then { if {[catch { object invoke System.Data.SQLite.SQLiteConnection SharedFlags } sharedFlags] == 0} then { if {![info exists ::no(emitSharedFlags)] && \ (![info exists ::no(emitSharedFlagsIfNone)] || \ ![hasNoFlags sharedFlags true])} then { tputs $::test_channel [appendArgs \ "---- shared connection flags for " $database \ " are: " [expr {![hasNoFlags sharedFlags true] ? \ [appendArgs \" $sharedFlags \"] : "<none>"}] \n] } } else { if {![info exists ::no(emitSharedFlags)] && \ ![info exists ::no(emitSharedFlagsIfUnavailable)]} then { tputs $::test_channel [appendArgs \ "---- shared connection flags for " $database \ " are: <unavailable>\n"] } } } # # NOTE: If there are any global (per test run) connection flags currently # set, use them now (i.e. by combining them with the ones for this # connection). # if {[info exists ::connection_flags]} then { # # NOTE: Show (and log) the detected global connection flags. # if {!$quiet} then { if {![info exists ::no(emitGlobalFlags)] && \ (![info exists ::no(emitGlobalFlagsIfNone)] || \ ![hasNoFlags ::connection_flags false])} then { tputs $::test_channel [appendArgs \ "---- global connection flags detected: " \ [expr {![hasNoFlags ::connection_flags false] ? \ [appendArgs \" $::connection_flags \"] : "<none>"}] \n] } } # # NOTE: Combine and/or replace the connection flags and then show the # new value. # set flags [combineFlags $flags $::connection_flags] # # NOTE: Show (and log) the new effective connection flags. # if {!$quiet} then { if {![info exists ::no(emitCombinedFlags)] && \ (![info exists ::no(emitCombinedFlagsIfNone)] || \ ![hasNoFlags flags false])} then { tputs $::test_channel [appendArgs \ "---- combined connection flags for " $database \ " are: " [expr {![hasNoFlags flags false] ? \ [appendArgs \" $flags \"] : "<none>"}] \n] } } } return $flags } proc getFlagsProperty { {flags ""} {quiet false} } { |
︙ | ︙ |
Changes to Tests/tkt-647d282d11.eagle.
︙ | ︙ | |||
29 30 31 32 33 34 35 | [object invoke $connection PrepareRetries 20] \ [object invoke $connection PrepareRetries] } -cleanup { cleanupDb $fileName freeDbConnection | | | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | [object invoke $connection PrepareRetries 20] \ [object invoke $connection PrepareRetries] } -cleanup { cleanupDb $fileName freeDbConnection unset -nocomplain connection db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {10 {} 20}} ############################################################################### runSQLiteTestEpilogue |
︙ | ︙ |
Added Tests/tkt-a7d04fb111.eagle.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 121 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 148 149 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 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 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 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 | ############################################################################### # # tkt-a7d04fb111.eagle -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### package require Eagle package require Eagle.Library package require Eagle.Test runTestPrologue ############################################################################### package require System.Data.SQLite.Test runSQLiteTestPrologue ############################################################################### set rawDateTimeValue "2015-02-18 00:00:00.0000000" ############################################################################### runTest {test tkt-a7d04fb111-1.1 {Bind DateTime Utc Ticks} -setup { setupDb [set fileName tkt-a7d04fb111-1.1.db] "" Ticks Utc \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] == [lindex $result 1]}] lappend result [expr {[lindex $result 0] == [lindex $result 2]}] lappend result [expr {[lindex $result 1] == [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {635598144000000000 635598144000000000 635598432000000000 True False False}} ############################################################################### runTest {test tkt-a7d04fb111-1.2 {Bind DateTime Local Ticks} -setup { setupDb [set fileName tkt-a7d04fb111-1.2.db] "" Ticks Local \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] == [lindex $result 1]}] lappend result [expr {[lindex $result 0] == [lindex $result 2]}] lappend result [expr {[lindex $result 1] == [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {635598144000000000 635597856000000000 635598144000000000 False True False}} ############################################################################### runTest {test tkt-a7d04fb111-1.3 {Bind DateTime Utc ISO8601} -setup { setupDb [set fileName tkt-a7d04fb111-1.3.db] "" ISO8601 Utc \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] eq [lindex $result 1]}] lappend result [expr {[lindex $result 0] eq [lindex $result 2]}] lappend result [expr {[lindex $result 1] eq [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {{2015-02-18 00:00:00Z} {2015-02-18 00:00:00Z} {2015-02-18 08:00:00Z} True\ False False}} ############################################################################### runTest {test tkt-a7d04fb111-1.4 {Bind DateTime Local ISO8601} -setup { setupDb [set fileName tkt-a7d04fb111-1.4.db] "" ISO8601 Local \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] eq [lindex $result 1]}] lappend result [expr {[lindex $result 0] eq [lindex $result 2]}] lappend result [expr {[lindex $result 1] eq [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {{2015-02-18 00:00:00} {2015-02-17 16:00:00} {2015-02-18 00:00:00} False True\ False}} ############################################################################### runTest {test tkt-a7d04fb111-1.5 {Bind DateTime Utc JulianDay} -setup { setupDb [set fileName tkt-a7d04fb111-1.5.db] "" JulianDay Utc \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [expr {round2([sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]], 2)}] lappend result [expr {[lindex $result 0] == [lindex $result 1]}] lappend result [expr {[lindex $result 0] == [lindex $result 2]}] lappend result [expr {[lindex $result 1] == [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {2457071.5 2457071.5 2457071.83 True False False}} ############################################################################### runTest {test tkt-a7d04fb111-1.6 {Bind DateTime Local JulianDay} -setup { setupDb [set fileName tkt-a7d04fb111-1.6.db] "" JulianDay Local \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [expr {round2([sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]], 2)}] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] == [lindex $result 1]}] lappend result [expr {[lindex $result 0] == [lindex $result 2]}] lappend result [expr {[lindex $result 1] == [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {2457071.5 2457071.17 2457071.5 False True False}} ############################################################################### runTest {test tkt-a7d04fb111-1.7 {Bind DateTime Utc UnixEpoch} -setup { setupDb [set fileName tkt-a7d04fb111-1.7.db] "" UnixEpoch Utc \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] == [lindex $result 1]}] lappend result [expr {[lindex $result 0] == [lindex $result 2]}] lappend result [expr {[lindex $result 1] == [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {1424217600 1424217600 1424246400 True False False}} ############################################################################### runTest {test tkt-a7d04fb111-1.8 {Bind DateTime Local UnixEpoch} -setup { setupDb [set fileName tkt-a7d04fb111-1.8.db] "" UnixEpoch Local \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] == [lindex $result 1]}] lappend result [expr {[lindex $result 0] == [lindex $result 2]}] lappend result [expr {[lindex $result 1] == [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {1424217600 1424188800 1424217600 False True False}} ############################################################################### runTest {test tkt-a7d04fb111-1.9 {Bind DateTime Utc Invariant} -setup { setupDb [set fileName tkt-a7d04fb111-1.9.db] "" InvariantCulture Utc \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] eq [lindex $result 1]}] lappend result [expr {[lindex $result 0] eq [lindex $result 2]}] lappend result [expr {[lindex $result 1] eq [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {2015-02-18T00:00:00.0000000 2015-02-18T00:00:00.0000000Z\ 2015-02-18T08:00:00.0000000Z False False False}} ############################################################################### runTest {test tkt-a7d04fb111-1.10 {Bind DateTime Local Invariant} -setup { setupDb [set fileName tkt-a7d04fb111-1.10.db] "" InvariantCulture Local \ BindDateTimeWithKind } -body { set dateTimeValue(0) [object invoke \ -create DateTime ParseExact $rawDateTimeValue \ [getDateTimeFormat] null] set dateTimeValue(1) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Utc] set dateTimeValue(2) [object invoke -create -alias \ DateTime SpecifyKind $dateTimeValue(0) Local] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(0)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(1)]] lappend result [sql execute -execute scalar $db "SELECT ?;" \ [list param1 DateTime $dateTimeValue(2)]] lappend result [expr {[lindex $result 0] eq [lindex $result 1]}] lappend result [expr {[lindex $result 0] eq [lindex $result 2]}] lappend result [expr {[lindex $result 1] eq [lindex $result 2]}] } -cleanup { cleanupDb $fileName unset -nocomplain result dateTimeValue db fileName } -constraints \ {eagle monoBug28 command.sql compile.DATA SQLite System.Data.SQLite} -result \ {2015-02-18T00:00:00.0000000 2015-02-17T16:00:00.0000000-08:00\ 2015-02-18T00:00:00.0000000-08:00 False False False}} ############################################################################### unset -nocomplain rawDateTimeValue ############################################################################### runSQLiteTestEpilogue runTestEpilogue |
Changes to readme.htm.
︙ | ︙ | |||
229 230 231 232 233 234 235 236 237 238 239 240 241 242 | <li>Make sure the interop files are copied when publishing a project that refers to a NuGet package containing them. Fix for [e796ac82c1]. <b>** Potentially Incompatible Change **</b></li> <li>Make sure the interop files are copied before the PostBuildEvent. Fix for [f16c93a932]. <b>** Potentially Incompatible Change **</b></li> <li>Modify GetSchemaTable method to avoid setting SchemaTableColumn.IsKey column to true when more than one table is referenced. Fix for [47c6fa04d3]. <b>** Potentially Incompatible Change **</b></li> <li>Add AppendManifestToken_SQLiteProviderManifest environment variable to enable better integration between LINQ and the underlying store connection.</li> <li>Add SQLite_ForceLogPrepare environment variable to force logging of all prepared SQL regardless of the flags for the associated connection.</li> <li>Honor the DateTimeFormat, DateTimeKind, DateTimeFormatString, BinaryGUID connection string and/or provider manifest token properties from within the LINQ assembly. Fix for [8d928c3e88]. <b>** Potentially Incompatible Change **</b></li> <li>Add PrepareRetries connection string property to allow the maximum number of retries when preparing a query to be overridden. Fix for [647d282d11].</li> </ul> <p> <b>1.0.94.0 - September 9, 2014</b> </p> <ul> <li>Updated to <a href="https://www.sqlite.org/releaselog/3_8_6.html">SQLite 3.8.6</a>.</li> <li>Updated to <a href="https://www.nuget.org/packages/EntityFramework/6.1.1">Entity Framework 6.1.1</a>.</li> | > | 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | <li>Make sure the interop files are copied when publishing a project that refers to a NuGet package containing them. Fix for [e796ac82c1]. <b>** Potentially Incompatible Change **</b></li> <li>Make sure the interop files are copied before the PostBuildEvent. Fix for [f16c93a932]. <b>** Potentially Incompatible Change **</b></li> <li>Modify GetSchemaTable method to avoid setting SchemaTableColumn.IsKey column to true when more than one table is referenced. Fix for [47c6fa04d3]. <b>** Potentially Incompatible Change **</b></li> <li>Add AppendManifestToken_SQLiteProviderManifest environment variable to enable better integration between LINQ and the underlying store connection.</li> <li>Add SQLite_ForceLogPrepare environment variable to force logging of all prepared SQL regardless of the flags for the associated connection.</li> <li>Honor the DateTimeFormat, DateTimeKind, DateTimeFormatString, BinaryGUID connection string and/or provider manifest token properties from within the LINQ assembly. Fix for [8d928c3e88]. <b>** Potentially Incompatible Change **</b></li> <li>Add PrepareRetries connection string property to allow the maximum number of retries when preparing a query to be overridden. Fix for [647d282d11].</li> <li>Add BindDateTimeWithKind connection flag to force DateTime parameter values to match the DateTimeKind associated with the connection, if applicable. Fix for [a7d04fb111].</li> </ul> <p> <b>1.0.94.0 - September 9, 2014</b> </p> <ul> <li>Updated to <a href="https://www.sqlite.org/releaselog/3_8_6.html">SQLite 3.8.6</a>.</li> <li>Updated to <a href="https://www.nuget.org/packages/EntityFramework/6.1.1">Entity Framework 6.1.1</a>.</li> |
︙ | ︙ |
Changes to www/news.wiki.
︙ | ︙ | |||
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <li>Make sure the interop files are copied when publishing a project that refers to a NuGet package containing them. Fix for [e796ac82c1]. <b>** Potentially Incompatible Change **</b></li> <li>Make sure the interop files are copied before the PostBuildEvent. Fix for [f16c93a932]. <b>** Potentially Incompatible Change **</b></li> <li>Modify GetSchemaTable method to avoid setting SchemaTableColumn.IsKey column to true when more than one table is referenced. Fix for [47c6fa04d3]. <b>** Potentially Incompatible Change **</b></li> <li>Add AppendManifestToken_SQLiteProviderManifest environment variable to enable better integration between LINQ and the underlying store connection.</li> <li>Add SQLite_ForceLogPrepare environment variable to force logging of all prepared SQL regardless of the flags for the associated connection.</li> <li>Honor the DateTimeFormat, DateTimeKind, DateTimeFormatString, BinaryGUID connection string and/or provider manifest token properties from within the LINQ assembly. Fix for [8d928c3e88]. <b>** Potentially Incompatible Change **</b></li> <li>Add PrepareRetries connection string property to allow the maximum number of retries when preparing a query to be overridden. Fix for [647d282d11].</li> </ul> <p> <b>1.0.94.0 - September 9, 2014</b> </p> <ul> <li>Updated to [https://www.sqlite.org/releaselog/3_8_6.html|SQLite 3.8.6].</li> <li>Updated to [https://www.nuget.org/packages/EntityFramework/6.1.1|Entity Framework 6.1.1].</li> | > | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <li>Make sure the interop files are copied when publishing a project that refers to a NuGet package containing them. Fix for [e796ac82c1]. <b>** Potentially Incompatible Change **</b></li> <li>Make sure the interop files are copied before the PostBuildEvent. Fix for [f16c93a932]. <b>** Potentially Incompatible Change **</b></li> <li>Modify GetSchemaTable method to avoid setting SchemaTableColumn.IsKey column to true when more than one table is referenced. Fix for [47c6fa04d3]. <b>** Potentially Incompatible Change **</b></li> <li>Add AppendManifestToken_SQLiteProviderManifest environment variable to enable better integration between LINQ and the underlying store connection.</li> <li>Add SQLite_ForceLogPrepare environment variable to force logging of all prepared SQL regardless of the flags for the associated connection.</li> <li>Honor the DateTimeFormat, DateTimeKind, DateTimeFormatString, BinaryGUID connection string and/or provider manifest token properties from within the LINQ assembly. Fix for [8d928c3e88]. <b>** Potentially Incompatible Change **</b></li> <li>Add PrepareRetries connection string property to allow the maximum number of retries when preparing a query to be overridden. Fix for [647d282d11].</li> <li>Add BindDateTimeWithKind connection flag to force DateTime parameter values to match the DateTimeKind associated with the connection, if applicable. Fix for [a7d04fb111].</li> </ul> <p> <b>1.0.94.0 - September 9, 2014</b> </p> <ul> <li>Updated to [https://www.sqlite.org/releaselog/3_8_6.html|SQLite 3.8.6].</li> <li>Updated to [https://www.nuget.org/packages/EntityFramework/6.1.1|Entity Framework 6.1.1].</li> |
︙ | ︙ |