Skip to content

Commit

Permalink
fix: order of dropping handle
Browse files Browse the repository at this point in the history
  • Loading branch information
SalHe committed Jan 16, 2024
1 parent 778cf92 commit 31542bd
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@

All notable changes to this project will be documented in this file.

## [0.1.2] - 2024-01-16

### Bug Fixes

- Order of dropping handle

## [0.1.1] - 2024-01-05

### Bug Fixes

- Ignore single line comment
- Multi line paste

### Documentation

- CHANGELOG.md

### Features

- Disable show in less
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "yasqlplus"
authors = ["SalHe <salhe@qq.com>"]
description = "YaSQL+ is an alternative for yasql."
version = "0.1.1"
version = "0.1.2"
edition = "2021"
license = "MIT"

Expand Down
2 changes: 1 addition & 1 deletion src/app/input/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::command::{parse_command, Command, ParseError};

use super::{Input, InputError};

pub struct BufReaderInput<R: ?Sized + Read> {
pub struct BufReaderInput<R: Read> {
reader: RefCell<BufReader<R>>,
}

Expand Down
2 changes: 1 addition & 1 deletion yasqlplus-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yasqlplus-client"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
license = "MIT"

Expand Down
2 changes: 1 addition & 1 deletion yasqlplus-client/src/wrapper/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::native::{yacConnect, yacDisconnect, EnYacResult_YAC_ERROR};
use super::{DbcHandle, EnvHandle, Error, Statement, StatementHandle};

pub struct Connection {
_env_handle: EnvHandle,
conn_handle: DbcHandle,
_env_handle: EnvHandle, // must be dropped after `conn_handle`
}

impl Connection {
Expand Down

0 comments on commit 31542bd

Please sign in to comment.