Skip to content

Commit

Permalink
Version bumb -> 3.0.7
Browse files Browse the repository at this point in the history
ALso, fix of one compilation warning and of (relatively) recently introduced memory leak
  • Loading branch information
lawrinn committed Nov 12, 2018
1 parent a94af40 commit 3eed852
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ cmake_minimum_required(VERSION 2.8)

SET(MARIADB_ODBC_VERSION_MAJOR 3)
SET(MARIADB_ODBC_VERSION_MINOR 0)
SET(MARIADB_ODBC_VERSION_PATCH 6)
SET(MARIADB_ODBC_VERSION_PATCH 7)
SET(MARIADB_ODBC_VERSION_QUALITY "ga")

SET(MARIADB_ODBC_VERSION "03.00.0006")
SET(MARIADB_ODBC_VERSION "03.00.0007")

CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/ma_odbc_version.h.in
${CMAKE_SOURCE_DIR}/ma_odbc_version.h)
Expand Down
2 changes: 2 additions & 0 deletions ma_statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -3491,12 +3491,14 @@ SQLRETURN MADB_StmtColumns(MADB_Stmt *Stmt,
MADB_FixColumnDataTypes(Stmt, SqlColumnsColType);
}

MADB_FREE(ColumnsPart);
MADB_DynstrFree(&StmtStr);
MDBUG_C_DUMP(Stmt->Connection, ret, d);

return ret;

dynerror:
MADB_FREE(ColumnsPart);
MADB_SetError(&Stmt->Error, MADB_ERR_HY001, NULL, 0);
return Stmt->Error.ReturnValue;
}
Expand Down
2 changes: 1 addition & 1 deletion ma_typeconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SQLRETURN MADB_Str2Ts(const char *Str, size_t Length, SQL_TIMESTAMP_STRUCT *Ts,
{
size_t FracMulIdx= End - (Frac + 1) - 1/*to get index array index */;
/* ODBC - nano-seconds */
if (sscanf(Start, "%hd:%hu:%hu.%9lu", &Ts->hour, &Ts->minute,
if (sscanf(Start, "%hd:%hu:%hu.%9u", &Ts->hour, &Ts->minute,
&Ts->second, &Ts->fraction) < 4)
{
return MADB_SetError(Error, MADB_ERR_22008, NULL, 0);
Expand Down
Binary file modified maodbca.rc
Binary file not shown.
8 changes: 4 additions & 4 deletions maodbcu.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,0,6,0
PRODUCTVERSION 3,0,6,0
FILEVERSION 3,0,7,0
PRODUCTVERSION 3,0,7,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -68,12 +68,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "MariaDB Corporation AB"
VALUE "FileDescription", "MariaDB ODBC Unicode Drvier"
VALUE "FileVersion", "3.0.6.0"
VALUE "FileVersion", "3.0.7.0"
VALUE "InternalName", "ma_odbc_u"
VALUE "LegalCopyright", "Copyright (C) 2013, 2018"
VALUE "OriginalFilename", "maodbc.dll"
VALUE "ProductName", "MariaDB ODBC Unicode Driver"
VALUE "ProductVersion", "3.0.6.0"
VALUE "ProductVersion", "3.0.7.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 3eed852

Please sign in to comment.