Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed Jun 5, 2021
1 parent f1ac93f commit 4e22e58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
19 changes: 9 additions & 10 deletions src/attributes.rs
Expand Up @@ -7,18 +7,17 @@ pub enum EnvironmentAttribute {
OdbcVersion = 200,
ConnectionPooling = 201,
CpMatch = 202,
// This attribute was commented out because there is no mention of it in the ODBC
// specification nor does this attribute exist in unixODBC or iODBC implementations.
// This attribute exists in Microsoft implementation only and it's usage is unclear.
// This attribute was commented out because there is no mention of it in the ODBC specification
// nor does this attribute exist in unixODBC or iODBC implementations. This attribute exists in
// Microsoft implementation only and it's usage is unclear.
// For private driver manager
//SQL_ATTR_APPLICATION_KEY = 203,
// SQL_ATTR_APPLICATION_KEY = 203,
OutputNts = 10001,
}

/// ODBC verions
///
/// Possible values for `OdbcVersion` attribute set with `SQLSetEnvAttr` to
/// declare ODBC version
/// Possible values for `OdbcVersion` attribute set with `SQLSetEnvAttr` to declare ODBC version
#[repr(i32)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum AttrOdbcVersion {
Expand All @@ -38,8 +37,8 @@ impl From<AttrOdbcVersion> for Pointer {
}
/// Connection pool configuration
///
/// Possible values for `ConnectionPooling` attribute set with `SQLSetEnvAttr` to define
/// which pooling scheme will be used
/// Possible values for `ConnectionPooling` attribute set with `SQLSetEnvAttr` to define which
/// pooling scheme will be used
#[repr(u32)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum AttrConnectionPooling {
Expand All @@ -64,8 +63,8 @@ impl From<AttrConnectionPooling> for Pointer {

/// Matching of pooled connections
///
/// Possible values for `CpMatch` attribute set with `SQLSetEnvAttr` to define
/// which connection attributes must match for a connection returned from the pool
/// Possible values for `CpMatch` attribute set with `SQLSetEnvAttr` to define which connection
/// attributes must match for a connection returned from the pool
#[repr(u32)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum AttrCpMatch {
Expand Down
5 changes: 1 addition & 4 deletions src/functions.rs
Expand Up @@ -875,8 +875,5 @@ extern "system" {
///
/// `SUCCESS`, `SUCCESS_WITH_INFO`, `NEED_DATA`, `NO_DATA`, `STILL_EXECUTING`, `ERROR`,
/// `INVALID_HANDLE`, or `PARAM_DATA_AVAILABLE`.
pub fn SQLParamData(
hstmt: HStmt,
value_out: * mut Pointer,
) -> SqlReturn;
pub fn SQLParamData(hstmt: HStmt, value_out: *mut Pointer) -> SqlReturn;
}

0 comments on commit 4e22e58

Please sign in to comment.