Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Minor tweaks |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
409cdff9bc464872ad1f688af9f53f40 |
User & Date: | rmsimpson 2005-08-31 22:00:15.000 |
Context
2005-09-01
| ||
06:04 | 1.0.18 check-in: 2463d43a97 user: rmsimpson tags: sourceforge | |
2005-08-31
| ||
22:00 | Minor tweaks check-in: 409cdff9bc user: rmsimpson tags: sourceforge | |
2005-08-30
| ||
16:52 | Added new overrides to remove any necessary casting by end-users check-in: c8fd4d6f09 user: rmsimpson tags: sourceforge | |
Changes
Changes to System.Data.SQLite/SQLiteCommand.cs.
︙ | ︙ | |||
397 398 399 400 401 402 403 | /// <summary> /// Creates a new SQLiteDataReader to execute/iterate the array of SQLite prepared statements /// </summary> /// <param name="behavior">The behavior the data reader should adopt</param> /// <returns>Returns a SQLiteDataReader object</returns> protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) { | < < < < < | > | > > > > | | 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 425 426 427 428 429 430 431 432 433 434 435 | /// <summary> /// Creates a new SQLiteDataReader to execute/iterate the array of SQLite prepared statements /// </summary> /// <param name="behavior">The behavior the data reader should adopt</param> /// <returns>Returns a SQLiteDataReader object</returns> protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) { return ExecuteReader(behavior); } /// <summary> /// Overrides the default behavior to return a SQLiteDataReader specialization class /// </summary> /// <param name="behavior">The flags to be associated with the reader</param> /// <returns>A SQLiteDataReader</returns> public new SQLiteDataReader ExecuteReader(CommandBehavior behavior) { InitializeForReader(); SQLiteDataReader rd = new SQLiteDataReader(this, behavior); _isReaderOpen = true; return rd; } /// <summary> /// Overrides the default behavior of DbDataReader to return a specialized SQLiteDataReader class /// </summary> /// <returns>A SQLiteDataReader</returns> public new SQLiteDataReader ExecuteReader() { return ExecuteReader(CommandBehavior.Default); } /// <summary> /// Called by the SQLiteDataReader when the data reader is closed. /// </summary> internal void ClearDataReader() { |
︙ | ︙ | |||
472 473 474 475 476 477 478 479 480 481 482 483 484 485 | int n; int x; object ret = null; SQLiteType typ = new SQLiteType(); x = _statementList.Length; for (n = 0; n < x; n++) { if (_cnn._sql.Step(_statementList[n]) == true && ret == null) { ret = _cnn._sql.GetValue(_statementList[n], 0, ref typ); } _cnn._sql.Reset(_statementList[n]); | > > | 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 | int n; int x; object ret = null; SQLiteType typ = new SQLiteType(); x = _statementList.Length; // We step through every statement in the command, but only grab the first row of the first resultset. // We keep going even after obtaining it. for (n = 0; n < x; n++) { if (_cnn._sql.Step(_statementList[n]) == true && ret == null) { ret = _cnn._sql.GetValue(_statementList[n], 0, ref typ); } _cnn._sql.Reset(_statementList[n]); |
︙ | ︙ |