System.Data.SQLite

Check-in [52e06f632a]
Login

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

Overview
Comment:SourceColumnNullMapping fix
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | sourceforge
Files: files | file ages | folders
SHA1: 52e06f632a1e597aee3d2d6f9c662b8f6ea9e8e9
User & Date: rmsimpson 2006-02-07 20:06:37.000
Context
2006-02-07
20:07
Designer fixes check-in: 8c1919d48a user: rmsimpson tags: sourceforge
20:06
SourceColumnNullMapping fix check-in: 52e06f632a user: rmsimpson tags: sourceforge
20:06
Design-time support fixes check-in: 8b9640024b user: rmsimpson tags: sourceforge
Changes
Unified Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteParameter.cs.
37
38
39
40
41
42
43


44
45
46
47
48
49
50
    /// </summary>
    private string         _columnName;
    /// <summary>
    /// The data size, unused by SQLite
    /// </summary>
    private int            _dataSize;



    /// <summary>
    /// Default constructor
    /// </summary>
    public SQLiteParameter()
    {
      Initialize(null, -1, 0, null, DataRowVersion.Current);
    }







>
>







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
    /// </summary>
    private string         _columnName;
    /// <summary>
    /// The data size, unused by SQLite
    /// </summary>
    private int            _dataSize;

    private bool _nullMapping;

    /// <summary>
    /// Default constructor
    /// </summary>
    public SQLiteParameter()
    {
      Initialize(null, -1, 0, null, DataRowVersion.Current);
    }
245
246
247
248
249
250
251

252
253
254
255
256
257
258
    {
      _columnName = parameterName;
      _dbType = paramType;
      _sourceColumn = sourceColumn;
      _rowVersion = rowVersion;
      _objValue = null;
      _dataSize = nSize;

    }

    /// <summary>
    /// Returns True.
    /// </summary>
    public override bool IsNullable
    {







>







247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
    {
      _columnName = parameterName;
      _dbType = paramType;
      _sourceColumn = sourceColumn;
      _rowVersion = rowVersion;
      _objValue = null;
      _dataSize = nSize;
      _nullMapping = false;
    }

    /// <summary>
    /// Returns True.
    /// </summary>
    public override bool IsNullable
    {
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363

364
365
366
367
368
369
370
      set
      {
        _sourceColumn = value;
      }
    }

    /// <summary>
    /// Returns false, ignores any set value
    /// </summary>
    public override bool SourceColumnNullMapping
    {
      get
      {
        return false;
      }
      set
      {

      }
    }

    /// <summary>
    /// Gets and sets the row version
    /// </summary>
    public override DataRowVersion SourceVersion







|





|



>







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
      set
      {
        _sourceColumn = value;
      }
    }

    /// <summary>
    /// Used by DbCommandBuilder to determine the mapping for nullable fields
    /// </summary>
    public override bool SourceColumnNullMapping
    {
      get
      {
        return _nullMapping;
      }
      set
      {
        _nullMapping = value;
      }
    }

    /// <summary>
    /// Gets and sets the row version
    /// </summary>
    public override DataRowVersion SourceVersion