From c4b3dfe93bc81accc64c8e29811d3f680e4a3237 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 27 Aug 2014 11:37:51 -0700 Subject: [PATCH] Fix ODBC driver discovery. --- test/tables/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tables/CMakeLists.txt b/test/tables/CMakeLists.txt index 15c24b097..c725aa88d 100644 --- a/test/tables/CMakeLists.txt +++ b/test/tables/CMakeLists.txt @@ -11,7 +11,7 @@ if (ODBC_FOUND) check_cxx_source_runs( "#include \"odbc.cc\" int main() { - return odbc::Env().FindDriver(\"access\").empty() ? 1 : 0; + return odbc::Env().FindDriver(\"*.accdb\").empty() ? 1 : 0; }" HAVE_ACCESS_DRIVER) if (HAVE_ACCESS_DRIVER) @@ -22,7 +22,7 @@ if (ODBC_FOUND) check_cxx_source_runs( "#include \"odbc.cc\" int main() { - return odbc::Env().FindDriver(\"excel\").empty() ? 1 : 0; + return odbc::Env().FindDriver(\"*.xlsx\").empty() ? 1 : 0; }" HAVE_EXCEL_DRIVER) if (HAVE_EXCEL_DRIVER)