Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch tkt-41aea496e0 Excluding Merge-Ins
This is equivalent to a diff from d7fe8b7801 to e8e6cb1409
2015-08-19
| ||
04:31 | Refactor INSERT/UPDATE handling (in the LINQ assembly) so it can handle composite and non-integer primary keys. Fix for [41aea496e0]. check-in: c1baff799b user: mistachkin tags: preRelease | |
04:23 | Corrections to the test cases for tickets [41aea496e0] and [9d353b0bd8]. Closed-Leaf check-in: e8e6cb1409 user: mistachkin tags: tkt-41aea496e0 | |
02:30 | Work in progress on fixing ticket [41aea496e0]. check-in: 8ea5fcd6b9 user: mistachkin tags: tkt-41aea496e0 | |
2015-08-18
| ||
23:12 | Fix release process issues impacting the master release archive manifest and the built packages. check-in: d7fe8b7801 user: mistachkin tags: preRelease | |
22:47 | Rebuild the CHM file. check-in: e514a4a71d user: mistachkin tags: preRelease | |
Changes to Setup/data/verify.lst.
︙ | |||
773 774 775 776 777 778 779 780 781 782 783 784 785 786 | 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 | + | Tests/tkt-3113734605.eagle Tests/tkt-343d392b51.eagle Tests/tkt-3567020edf.eagle Tests/tkt-393d954be0.eagle Tests/tkt-3aa50d8413.eagle Tests/tkt-3c00ec5b52.eagle Tests/tkt-3e783eecbe.eagle Tests/tkt-41aea496e0.eagle Tests/tkt-448d663d11.eagle Tests/tkt-47c6fa04d3.eagle Tests/tkt-47f4bac575.eagle Tests/tkt-48a6b8e4ca.eagle Tests/tkt-4a791e70ab.eagle Tests/tkt-544dba0a2f.eagle Tests/tkt-56b42d99c1.eagle |
︙ |
Changes to System.Data.SQLite.Linq/SQL Generation/DmlSqlGenerator.cs.
︙ | |||
79 80 81 82 83 84 85 | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | - + | // where c1 = ..., c2 = ... commandText.Append("WHERE "); tree.Predicate.Accept(translator); commandText.AppendLine(";"); // generate returning sql |
︙ | |||
146 147 148 149 150 151 152 | 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 | - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | } else // No columns specified. Insert an empty row containing default values by inserting null into the rowid { commandText.AppendLine(" DEFAULT VALUES;"); } // generate returning sql |
︙ | |||
186 187 188 189 190 191 192 193 | 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 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 | + + + + - + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + | /// </summary> /// <param name="commandText">Builder containing command text</param> /// <param name="tree">Modification command tree</param> /// <param name="translator">Translator used to produce DML SQL statement /// for the tree</param> /// <param name="returning">Returning expression. If null, the method returns /// immediately without producing a SELECT statement.</param> /// <param name="wasInsert"> /// Non-zero if this method is being called as part of processing an INSERT; /// otherwise (e.g. UPDATE), zero. /// </param> private static void GenerateReturningSql(StringBuilder commandText, DbModificationCommandTree tree, |
︙ |
Added Tests/tkt-41aea496e0.eagle.
|
Changes to Tests/tkt-9d353b0bd8.eagle.
︙ | |||
50 51 52 53 54 55 56 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - - + + | lappend result [string trim $error] } set result } -cleanup { unset -nocomplain code output error result } -constraints {eagle monoToDo SQLite file_System.Data.SQLite.dll testExec\ |
Changes to testlinq/Program.cs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | + + | /******************************************************** * ADO.NET 2.0 Data Provider for SQLite Version 3.X * Written by Robert Simpson (robert@blackcastlesoft.com) * * Released to the public domain, use at your own risk! ********************************************************/ using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Transactions; |
︙ | |||
142 143 144 145 146 147 148 | 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | - - | return 1; } } return EFTransactionTest(value); } |
︙ | |||
196 197 198 199 200 201 202 203 204 205 206 207 208 209 | 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | + + + + | #endif #if NET_40 || NET_45 || NET_451 || NET_46 case "round": { return RoundTest(); } #endif case "complexprimarykey": { return ComplexPrimaryKeyTest(); } default: { Console.WriteLine("unknown test \"{0}\"", arg); return 1; } } } |
︙ | |||
554 555 556 557 558 559 560 | 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 | - + + + + + + + + + + - - + + + + + + + + + + | #endif } } return 0; } |
︙ | |||
605 606 607 608 609 610 611 | 626 627 628 629 630 631 632 633 634 635 636 637 638 639 | - | } Console.WriteLine("inserted {0}", counts[0]); } return 0; } |
︙ | |||
750 751 752 753 754 755 756 757 758 759 760 761 762 763 | 770 771 772 773 774 775 776 777 778 779 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 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | Environment.SetEnvironmentVariable( "AppendManifestToken_SQLiteProviderManifest", null); return 0; } #endif private static int ComplexPrimaryKeyTest() { using (northwindEFEntities db = new northwindEFEntities()) { long orderId = 10248; long productId = 1; int[] counts = { 0, 0 }; // // NOTE: *REQUIRED* This is required so that the // Entity Framework is prevented from opening // multiple connections to the underlying SQLite // database (i.e. which would result in multiple // IMMEDIATE transactions, thereby failing [later // on] with locking errors). // db.Connection.Open(); KeyValuePair<string, object> orderIdPair = new KeyValuePair<string, object>("OrderID", orderId); KeyValuePair<string, object> productIdPair = new KeyValuePair<string, object>("ProductID", productId); ///////////////////////////////////////////////////////////////// OrderDetails newOrderDetails = new OrderDetails(); newOrderDetails.OrderID = orderId; newOrderDetails.ProductID = productId; newOrderDetails.UnitPrice = (decimal)1.23; newOrderDetails.Quantity = 1; newOrderDetails.Discount = 0.0f; newOrderDetails.OrdersReference.EntityKey = new EntityKey( "northwindEFEntities.Orders", new KeyValuePair<string, object>[] { orderIdPair }); newOrderDetails.ProductsReference.EntityKey = new EntityKey( "northwindEFEntities.Products", new KeyValuePair<string, object>[] { productIdPair }); db.AddObject("OrderDetails", newOrderDetails); try { db.SaveChanges(); counts[0]++; } catch (Exception e) { Console.WriteLine(e); } finally { db.AcceptAllChanges(); } try { db.Refresh(RefreshMode.StoreWins, newOrderDetails); counts[0]++; } catch (Exception e) { Console.WriteLine(e); } Console.WriteLine("inserted {0}", counts[0]); ///////////////////////////////////////////////////////////////// newOrderDetails.UnitPrice = (decimal)2.34; newOrderDetails.Quantity = 2; newOrderDetails.Discount = 0.1f; try { db.SaveChanges(); counts[1]++; } catch (Exception e) { Console.WriteLine(e); } finally { db.AcceptAllChanges(); } try { db.Refresh(RefreshMode.StoreWins, newOrderDetails); counts[1]++; } catch (Exception e) { Console.WriteLine(e); } Console.WriteLine("updated {0}", counts[1]); } return 0; } private static int DateTimeTest() { using (northwindEFEntities db = new northwindEFEntities()) { DateTime dateTime = new DateTime(1997, 1, 1, 0, 0, 0, DateTimeKind.Local); int c1 = db.Orders.Where(i => i.OrderDate == new DateTime(1997, 1, 1, 0, 0, 0, DateTimeKind.Local)).Count(); |
︙ |