2020-04-11 Mihai Giurgeanu * stack.yaml (resolver): change to lts-9.21 * src/SQL/CLI/Utils.hs (peekMaybeCol): change logsrc to logSrc'. Remove import of Control.Logging.log. Use OverloadedStrings extension for computing the log's source. Replace every log call with a debugS call. 2020-04-03 Mihai Giurgeanu * README.md: add more information about using the library. 2019-03-13 Mihai Giurgeanu * src/SQL/CLI.hs (SQLINTEGER): change definition of SQLINTEGER to CLong for ODBC also. (SQLHANDLE): define SQLHANDLE for Windows as Ptr () (that is void *). Make it SQLINTEGER for other platforms. 2019-03-02 Mihai Giurgeanu * stack.yaml (extra-deps): use latest logging-3.0.5 2018-03-17 Mihai Giurgeanu * sqlcli.cabal (Flag ODBC): enable ODBC flag by default 2017-12-26 Mihai Giurgeanu * 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 * 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 * src/SQL/CLI/Utils.hs (collectColumnsInfo): refactor collectColumnsInfo into 2 functions: colllectColumnsInfo and collectColumnsInfo' 2017-11-10 Mihai Giurgeanu * 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 * 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 * src/SQL/CLI/Utils.hs: use a simple logging framework instead of hPutStrLn stderr 2017-09-18 Mihai Giurgeanu * 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 * 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 * src/SQL/CLI/Utils.hs (setConnectAttr): add SetConnectAttr wrapper 2017-09-13 Mihai Giurgeanu * 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 * 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 * 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 * 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 * 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.