Skip to content

Commit

Permalink
Update files for v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
huwwynnjones committed Aug 21, 2018
1 parent 82030de commit 9f64050
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## v0.8.0

Added support for setting the pre-fetch value and fixed a bug that caused bind parameters to be read from wrong memory addresses.

## v0.7.0

Merges in support for windows via the `windows-gnu` toolchain along with some tidying up
Expand Down
2 changes: 1 addition & 1 deletion CRATEREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ In order to use `oci_rs` add this to your `Cargo.toml`:

```toml
[dependencies]
oci_rs = "0.7.0"
oci_rs = "0.8.0"
```
and this to your crate root:

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oci_rs"
version = "0.7.0"
version = "0.8.0"
authors = ["Huw Wynn-Jones <[email protected]>"]
description = "This crate provides a Rust wrapper to the Oracle Call Interface (OCI) library."
keywords = ["oracle", "database", "sql", "oci", "db"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ In order to use `oci_rs` add this to your `Cargo.toml`:

```toml
[dependencies]
oci_rs = "0.7.0"
oci_rs = "0.8.0"
```
and this to your crate root:

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
//!
//! ```toml
//! [dependencies]
//! oci_rs = "0.7.0"
//! oci_rs = "0.8.0"
//! ```
//! and this to your crate root:
//!
Expand Down
6 changes: 3 additions & 3 deletions src/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ impl<'conn> Statement<'conn> {
/// parameters, however this is not yet available through this crate.
///
pub fn bind(&mut self, params: &[&ToSqlValue]) -> Result<(), OciError> {
// clear out previous bind parameters
// clear out previous bind parameters
self.values.clear();

// ensure that the vec is large enough to hold all the parameters
// otherwise the vec will re-size, re-allocated and the addresses will change
// otherwise the vec will re-size, re-allocate and the addresses will change
self.values.reserve(params.len());

for (index, param) in params.iter().enumerate() {
Expand Down
3 changes: 2 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ fn create_datetime_with_timezone_from_raw(data: &[u8]) -> DateTime<FixedOffset>
let timezone_minute = convert_timezone_minute(data[12]);
let hour_in_secs = timezone_hour * 3600;
let minutes_in_secs = timezone_minute * 60;
let utc_dt = Utc.ymd(century + year, month, day)
let utc_dt = Utc
.ymd(century + year, month, day)
.and_hms_nano(hour, minute, second, nano);
utc_dt.with_timezone(&FixedOffset::east(hour_in_secs + minutes_in_secs))
}
Expand Down

0 comments on commit 9f64050

Please sign in to comment.