System.Data.SQLite
Check-in [c49c15f654]
Not logged in

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

Overview
Comment:Test whitespace style adjustments.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c49c15f6544b1961e6bf3647014c29c04f6336fd
User & Date: mistachkin 2012-02-13 23:39:58
Context
2012-02-14
22:12
Issue warnings on the trace listners if a column type or type name cannot be mapped properly. See ticket [4bbf851fa5]. check-in: 10fae679b2 user: mistachkin tags: trunk
2012-02-13
23:39
Test whitespace style adjustments. check-in: c49c15f654 user: mistachkin tags: trunk
23:38
Add test for the transaction disposal exception handling behavior. check-in: b21d16dad9 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Tests/tkt-201128cc88.eagle.

    32     32       using System.Data.SQLite;
    33     33   
    34     34       namespace _Dynamic${id}
    35     35       {
    36     36         \[SQLiteFunction(Name = "Base64", FuncType = FunctionType.Scalar)\]
    37     37         public class Test${id} : SQLiteFunction
    38     38         {
    39         -        public override object Invoke(object\[\] args)
           39  +        public override object Invoke(
           40  +          object\[\] args
           41  +          )
    40     42           {
    41     43             if (args == null)
    42     44               return null;
    43     45   
    44     46             if (args.Length != 1)
    45     47               return new ArgumentException(String.Format(
    46     48                 "need exactly one argument, got {0}", args.Length));
................................................................................
    57     59   
    58     60             if (type != typeof(byte\[\]))
    59     61               return new ArgumentException(String.Format(
    60     62                 "argument must be byte array, got {0}", type));
    61     63   
    62     64             return Convert.ToBase64String((byte\[\]) arg);
    63     65           }
           66  +
           67  +        ///////////////////////////////////////////////////////////////////////
    64     68   
    65     69           public static void Main()
    66     70           {
    67     71             SQLiteFunction.RegisterFunction(typeof(Test${id}));
    68     72           }
    69     73         }
    70     74       }

Changes to Tests/tkt-e1b2e0f769.eagle.

    47     47         {
    48     48           public class Test${id}
    49     49           {
    50     50             public static List<long?> Tkt_e1b2e0f769(SQLiteConnection connection)
    51     51             {
    52     52               List<long?> result = new List<long?>();
    53     53   
    54         -            using (SQLiteTransaction transaction = connection.BeginTransaction())
           54  +            using (SQLiteTransaction transaction =
           55  +                connection.BeginTransaction())
    55     56               {
    56     57                 using (SQLiteCommand command = connection.CreateCommand())
    57     58                 {
    58     59                   command.CommandText = "${sql}";
    59     60   
    60     61                   using (SQLiteDataReader dataReader = command.ExecuteReader())
    61     62                   {