GH #154 Add support for MYSQL_TYPE_NEWDECIMAL

GH #154 Add support for MYSQL_TYPE_NEWDECIMAL to Poco::Data::MySQL
This commit is contained in:
Alex Fabijanic
2014-05-12 02:41:48 -05:00
parent abce28bc65
commit 0a61d7a2b9
6 changed files with 84 additions and 79 deletions

View File

@@ -66,6 +66,7 @@ Release 1.5.3 (2014-05-xx)
- added SevenZip library (Guenter Obiltschnig) - added SevenZip library (Guenter Obiltschnig)
- fixed GH #442: Use correct prefix length field of Windows IP_ADAPTER_PREFIX structure - fixed GH #442: Use correct prefix length field of Windows IP_ADAPTER_PREFIX structure
- improved GH #328: NetworkInterface on Windows XP - improved GH #328: NetworkInterface on Windows XP
- fixed GH #154 Add support for MYSQL_TYPE_NEWDECIMAL to Poco::Data::MySQL
Release 1.5.2 (2013-09-16) Release 1.5.2 (2013-09-16)
========================== ==========================

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations"> <ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="debug_shared|x64"> <ProjectConfiguration Include="debug_shared|x64">
@@ -97,6 +97,8 @@
<OutDir>..\..\bin64\</OutDir> <OutDir>..\..\bin64\</OutDir>
<IntDir>obj64\$(Configuration)\</IntDir> <IntDir>obj64\$(Configuration)\</IntDir>
<LinkIncremental>true</LinkIncremental> <LinkIncremental>true</LinkIncremental>
<IncludePath>%MYSQL_BASE%\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
<LibraryPath>%MYSQL_BASE%\lib;$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);</LibraryPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release_shared|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release_shared|x64'">
<OutDir>..\..\bin64\</OutDir> <OutDir>..\..\bin64\</OutDir>

View File

@@ -104,6 +104,8 @@ namespace
case MYSQL_TYPE_FLOAT: case MYSQL_TYPE_FLOAT:
return Poco::Data::MetaColumn::FDT_FLOAT; return Poco::Data::MetaColumn::FDT_FLOAT;
case MYSQL_TYPE_DECIMAL:
case MYSQL_TYPE_NEWDECIMAL:
case MYSQL_TYPE_DOUBLE: case MYSQL_TYPE_DOUBLE:
return Poco::Data::MetaColumn::FDT_DOUBLE; return Poco::Data::MetaColumn::FDT_DOUBLE;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations"> <ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="debug_shared|x64"> <ProjectConfiguration Include="debug_shared|x64">
@@ -97,6 +97,8 @@
<OutDir>bin64\</OutDir> <OutDir>bin64\</OutDir>
<IntDir>obj64\$(Configuration)\</IntDir> <IntDir>obj64\$(Configuration)\</IntDir>
<LinkIncremental>true</LinkIncremental> <LinkIncremental>true</LinkIncremental>
<IncludePath>%MYSQL_BASE%\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
<LibraryPath>%MYSQL_BASE%\lib;$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);</LibraryPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release_shared|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release_shared|x64'">
<OutDir>bin64\</OutDir> <OutDir>bin64\</OutDir>

View File

@@ -47,8 +47,6 @@
<ClCompile Include="src\MySQLTestSuite.cpp"> <ClCompile Include="src\MySQLTestSuite.cpp">
<Filter>_Suite\Source Files</Filter> <Filter>_Suite\Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\WinDriver.cpp"> <ClCompile Include="src\Driver.cpp" />
<Filter>_Driver\Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -111,8 +111,8 @@ function Set-Environment
$Env:MYSQL_DIR = "$mysql_base" $Env:MYSQL_DIR = "$mysql_base"
$Env:MYSQL_INCLUDE = "$Env:MYSQL_DIR\include" $Env:MYSQL_INCLUDE = "$Env:MYSQL_DIR\include"
$Env:MYSQL_LIB = "$Env:MYSQL_DIR\lib" $Env:MYSQL_LIB = "$Env:MYSQL_DIR\lib"
Add-Env-Var "MYSQL", "INCLUDE" Add-Env-Var "MYSQL" "INCLUDE"
Add-Env-Var "MYSQL", "LIB" Add-Env-Var "MYSQL" "LIB"
} }
$vsct = "VS$($vs_version)COMNTOOLS" $vsct = "VS$($vs_version)COMNTOOLS"