Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
Changelog | ||
========= | ||
|
||
0.18.1 | ||
------ | ||
|
||
* Add `DATA_AT_EXEC` | ||
* Add `fn len_data_at_exec` | ||
|
||
0.18.0 | ||
------ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//! Special indicator values | ||
use crate::Len; | ||
|
||
/// Indicates `NULL` values. | ||
pub const NULL_DATA: Len = -1; | ||
|
||
/// Indicates that the size of the value is not known. ODBC returns this value in indicator buffers | ||
/// for truncated values of unknown size. | ||
pub const NO_TOTAL: Len = -4; | ||
|
||
/// Use this as the indicator argument to `SQLBindParameter` in order to indicate that the data is | ||
/// send at statement execution time. | ||
pub const DATA_AT_EXEC: Len = -2; | ||
|
||
/// Use result as the indicator argument to `SQLBindParameter` in order to indicate that the data is | ||
/// send at statement execution time. In contrast to `DATA_AT_EXEC` the total size is passed to the | ||
/// driver manager. | ||
pub fn len_data_at_exec(length: Len) -> Len { | ||
const SQL_LEN_DATA_AT_EXEC_OFFSET: Len = -100; | ||
|
||
-(length) + SQL_LEN_DATA_AT_EXEC_OFFSET | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters