Changelog for sqlcli-0.2.0.1

2018-03-17 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * sqlcli.cabal (Flag ODBC): enable ODBC flag by default 2017-12-26 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI.hs (SQLINTEGER): fix SQLINTEGER problems with ODBC on 64 bit platforms by using SQLLEN and SQLHANDLE Changed all definitions taking a length parameter to use SQLLEN and SQLULEN types instead of SQLINTEGER. 2017-11-30 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (fetchAndRunWithFail): new function similar to fetchAndRun but offering control on fail conditions (forAllRecordsWithEndAndFail): new function similar to forAllRecords but gives control over end and fail conditions 2017-11-28 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (collectColumnsInfo): refactor collectColumnsInfo into 2 functions: colllectColumnsInfo and collectColumnsInfo' 2017-11-10 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (collectColumnsInfo): sort the columns list by the ordinal position of the column in the table 2017-11-09 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI.hs (SQLINTEGER): changed definition of SQLINTEGER to 32 bit CInt * src/SQL/CLI/Utils.hs (collectColumnsInfo): clear size and buffer_length buffers after each record 2017-11-01 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs: use a simple logging framework instead of hPutStrLn stderr 2017-09-18 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (getDataAndRun): check the lenOrInd to see if more data is available (getCountOfDiagRecs): initialize return buffer with 0 2017-09-17 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (endTran): add EndTran wrapper (collectColumnsInfo): log to stderr before calling forAllRecords (getDataAndRun): don't display warnings on more data (displayDiagRec): add function displayDiagRec 2017-09-16 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (setConnectAttr): add SetConnectAttr wrapper 2017-09-13 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (tableExists): add schema name parameter (collectColumnsInfo): add schema name parameter (paramData): fix error when ParamData returns success (getCountOfDiagRecs): fix reading diagnostic records count return type (getDataAndRun): fix checking for more date in diagnostics 2017-09-12 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (getDescField): add wrapper for GetDescField (setDescField): add wrapper for SetDescField (toCLIType): add toCLIType function * src/SQL/CLI.hs (sql_desc_octet_length_ptr): fix spelling 2017-09-11 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (getDesRec): add wrapper for SQL/CLI function GetDescRec (setDescRec): add wrapper for SQL/CLI function SetDescRec (getStorableStmtAttr): add helper function, getStorableStmtAttr (getData): fixed doc (forAllData): add forAllData function 2017-09-10 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (getStmtAttr): add wrapper for the SQL/CLI function GetStmtAttr (numResultCols): add wrapper for the SQL/CLI function NumResultCols 2017-09-09 Mihai Giurgeanu <mihai.giurgeanu@gmail.com> * src/SQL/CLI/Utils.hs (paramData): add wrapper to SQL/CLI function ParamData (putData): add wrapper to SQL/CLI function PutData (bindParam): add wrapper for SQL/CLI function BindParam * src/SQL/CLI.hs (sqlparamdata): change second parameter to Ptr SQLPOINTER * src/SQL/CLI/Utils.hs (prepare): add wrapper to Prepare SQL/CLI API call * src/SQL/CLI.hs (sqlexecute): fix the name of imported function * src/SQL/CLI/Utils.hs (execDirect): add feeddata action to supply data for dynamic parameters (execute): add wrapper for Execute SQL/CLI api call Copyright 2017 Mihai Giurgeanu Copying and distribution of this file, with or without modification, are permitted provided the copyright notice and this notice are preserved.