System.Data.SQLite
Check-in [40c497decf]
Not logged in

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

Overview
Comment:1.08
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sourceforge
Files: files | file ages | folders
SHA1: 40c497decfe24b5178ddd60c7528b8a06b9e7765
User & Date: rmsimpson 2005-03-11 21:39:50
Context
2005-03-11
23:16
1.08 check-in: dba40334e2 user: rmsimpson tags: sourceforge
21:39
1.08 check-in: 40c497decf user: rmsimpson tags: sourceforge
15:03
3.14 code merge check-in: 1eef5ec724 user: rmsimpson tags: sourceforge
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

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

    24     24   //      Major Version
    25     25   //      Minor Version 
    26     26   //      Build Number
    27     27   //      Revision
    28     28   //
    29     29   // You can specify all the values or you can default the Revision and Build Numbers 
    30     30   // by using the '*' as shown below:
    31         -[assembly: AssemblyVersion("1.0.7.*")]
           31  +[assembly: AssemblyVersion("1.0.8.*")]

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

    76     76         return "?";
    77     77       }
    78     78   
    79     79   #if !PLATFORM_COMPACTFRAMEWORK
    80     80       /// <summary>
    81     81       /// Obsolete
    82     82       /// </summary>
           83  +#if !BETA1
    83     84       [Obsolete]
           85  +#endif
    84     86       protected override DbProviderFactory ProviderFactory
    85     87       {
    86     88         get 
    87     89         {
    88     90           return new SQLiteFactory();
    89     91         }
    90     92       }

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

   106    106       /// </summary>
   107    107       internal SQLiteBase          _sql;
   108    108       /// <summary>
   109    109       /// Commands associated with this connection
   110    110       /// </summary>
   111    111       internal List<SQLiteCommand> _commandList;
   112    112   
   113         -#if !PLATFORM_COMPACTFRAMEWORK
          113  +#if !PLATFORM_COMPACTFRAMEWORK && !BETA1
   114    114       /// <event/>
   115    115       /// <summary>
   116    116       /// This event is raised whenever the database is opened or closed.
   117    117       /// </summary>
   118    118       public override event StateChangeEventHandler StateChange;
   119    119   #endif
   120    120   
................................................................................
   165    165                 _sql.Execute(String.Format("ATTACH DATABASE '{0}' AS [{1}]", row[1], row[0]));
   166    166               }
   167    167             }
   168    168           }
   169    169         }
   170    170       }
   171    171   
   172         -#if PLATFORM_COMPACTFRAMEWORK
          172  +#if PLATFORM_COMPACTFRAMEWORK && !BETA1
   173    173       public override int ConnectionTimeout
   174    174       {
   175    175         get
   176    176         {
   177    177           return 30;
   178    178         }
   179    179       }
................................................................................
   212    212       }
   213    213   
   214    214       internal void OnStateChange(ConnectionState newState)
   215    215       {
   216    216         ConnectionState oldState = _connectionState;
   217    217         _connectionState = newState;
   218    218   
   219         -#if !PLATFORM_COMPACTFRAMEWORK
          219  +#if !PLATFORM_COMPACTFRAMEWORK && !BETA1
   220    220         if (StateChange != null && oldState != newState)
   221    221         {
   222    222           StateChangeEventArgs e = new StateChangeEventArgs(oldState, newState);
   223    223           StateChange(this, e);
   224    224         }
   225    225   #endif
   226    226       }

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

    69     69     /// be automatically freed for you (and Dispose() called if the item supports IDisposable) when the statement completes.
    70     70     /// </remarks>
    71     71     public abstract class SQLiteFunction : IDisposable
    72     72     {
    73     73   
    74     74       private SQLiteBase              _base;
    75     75       private int                     _interopCookie;
    76         -#if !PLATFORM_COMPACTFRAMEWORK
           76  +#if !PLATFORM_COMPACTFRAMEWORK && !BETA1
    77     77       private SortedList<int, object> _contextDataList;
    78     78   #else
    79     79       private SortedList _contextDataList;
    80     80   #endif
    81     81   
    82     82       private SQLiteCallback  _InvokeFunc;
    83     83       private SQLiteCallback  _StepFunc;
................................................................................
    90     90       private static List<SQLiteFunctionAttribute> _registeredFunctions = new List<SQLiteFunctionAttribute>();
    91     91   
    92     92       /// <summary>
    93     93       /// Internal constructor, initializes the function's internal variables.
    94     94       /// </summary>
    95     95       protected SQLiteFunction()
    96     96       {
    97         -#if !PLATFORM_COMPACTFRAMEWORK
           97  +#if !PLATFORM_COMPACTFRAMEWORK && !BETA1
    98     98         _contextDataList = new SortedList<int, object>();
    99     99   #else
   100    100         _contextDataList = new SortedList();
   101    101   #endif
   102    102         _InvokeFunc = null;
   103    103         _StepFunc = null;
   104    104         _FinalFunc = null;
................................................................................
   365    365       /// </summary>
   366    366       public void Dispose()
   367    367       {
   368    368         Dispose(true);
   369    369   
   370    370         IDisposable disp;
   371    371   
   372         -#if !PLATFORM_COMPACTFRAMEWORK
          372  +#if !PLATFORM_COMPACTFRAMEWORK && !BETA1
   373    373         foreach (KeyValuePair<int, object> kv in _contextDataList)
   374    374   #else
   375    375         foreach (DictionaryEntry kv in _contextDataList)
   376    376   #endif
   377    377         {
   378    378           disp = kv.Value as IDisposable;
   379    379           if (disp != null)
................................................................................
   387    387         _CompareFunc = null;
   388    388         _base = null;
   389    389         _contextDataList = null;
   390    390   
   391    391         GC.SuppressFinalize(this);
   392    392       }
   393    393   
          394  +#if !PLATFORM_COMPACTFRAMEWORK
   394    395       /// <summary>
   395    396       /// Using reflection, enumerate all assemblies in the current appdomain looking for classes that
   396    397       /// have a SQLiteFunctionAttribute attribute, and registering them accordingly.
   397    398       /// </summary>
   398    399       static SQLiteFunction()
   399    400       {
   400    401         SQLiteFunctionAttribute at;
................................................................................
   417    418                 at.InstanceType = arTypes[x];
   418    419                 _registeredFunctions.Add(at);
   419    420               }
   420    421             }
   421    422           }
   422    423         }
   423    424       }
   424         -
          425  +#else
   425    426       /// <summary>
   426    427       /// Manual method of registering a function.  The type must still have the SQLiteFunctionAttributes in order to work
   427    428       /// properly, but this is a workaround for the Compact Framework where enumerating assemblies is not currently supported.
   428    429       /// </summary>
   429    430       /// <param name="typ">The type of the function to register</param>
   430    431       public static void RegisterFunction(Type typ)
   431    432       {
................................................................................
   439    440           if (at != null)
   440    441           {
   441    442             at.InstanceType = typ;
   442    443             _registeredFunctions.Add(at);
   443    444           }
   444    445         }
   445    446       }
          447  +#endif
   446    448   
   447    449       /// <summary>
   448    450       /// Called by SQLiteBase derived classes, this function binds all user-defined functions to a connection.
   449    451       /// It is done this way so that all user-defined functions will access the database using the same encoding scheme
   450    452       /// as the connection (UTF-8 or UTF-16).
   451    453       /// </summary>
   452    454       /// <remarks>

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

   225    225       /// 
   226    226       /// </summary>
   227    227       public override int Count
   228    228       {
   229    229         get { return _parameterList.Count; }
   230    230       }
   231    231   
   232         -#if !PLATFORM_COMPACTFRAMEWORK
          232  +#if !PLATFORM_COMPACTFRAMEWORK && !BETA1
   233    233       /// <summary>
   234    234       /// 
   235    235       /// </summary>
   236    236       /// <param name="parameterName"></param>
   237    237       /// <returns></returns>
   238    238       protected override DbParameter GetParameter(string parameterName)
   239    239       {
................................................................................
   312    312       /// <param name="index"></param>
   313    313       public override void RemoveAt(int index)
   314    314       {
   315    315         _unboundFlag = true;
   316    316         _parameterList.RemoveAt(index);
   317    317       }
   318    318   
   319         -#if !PLATFORM_COMPACTFRAMEWORK
          319  +#if !PLATFORM_COMPACTFRAMEWORK && !BETA1
   320    320       /// <summary>
   321    321       /// 
   322    322       /// </summary>
   323    323       /// <param name="parameterName"></param>
   324    324       /// <param name="value"></param>
   325    325       protected override void SetParameter(string parameterName, DbParameter value)
   326    326       {

Changes to bin/SQLite.Interop.dll.

cannot compute difference between binary files

Changes to bin/System.Data.SQLite.dll.

cannot compute difference between binary files

Changes to bin/test.exe.

cannot compute difference between binary files