| Age | Commit message (Collapse) | Author |
|
* Implemented SQLSetDescRec function
- Fixed SQL_DESC_PRECISION field in IPDSetField & IPDGetField functions
- Added support for other fields for bookmark column in ARDSetField
- SQL_DESC_TYPE
- SQL_DESC_DATETIME_INTERVAL_CODE
- SQL_DESC_OCTET_LENGTH
- SQL_DESC_PRECISION
- SQL_DESC_SCALE
* Implemented SQLGetDescRec function
- Handled SQL_NO_DATA case in GetField functions
- Handled 01004 SQLSTATE in GetField functions
- Added support for SQL_DESC_NAME & SQL_DESC_NULLABLE IPDGetField functions
* Implemented SQLGetDescRecW & SQLSetDescRecW functions
- Updated PGAPI_GetFunctions function to get new functions
- Updated psqlodbc.def file for new functions on Windows
- Fixed HY007 error handling
* Added regression test for DescRec functions
|
|
* Fixed bugs, reported in issue #8.
Bunch of memory leaks, occuring in tests.
One heap-buffer-overrun in read operation at convert.c:3162.
Two memory leaks, detected by my unit tests:
password, conn_settings, pqopt fields overwrite if their values
provided by both, system config and connstring.
Restored reference counting lifetime managment of COL_INFO objects.
Some minor cosmetic changes.
Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
* Minor cosmetic changes.
Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
* Forgot set col_info to NULL in TABLE_INFO object while clearing it.
Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
* Fixing comments.
Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
---------
Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
|
|
|
|
it was returning a name from the previous result
|
|
|
|
Add a regression test for SQLColumnPrivileges().
|
|
noninitial refcursor 2. Fix error when fetching NULL refcursor 3. Return empty result if all refcursors are NULL
|
|
|
|
|
|
change the way how to determine ansi test driver.
|
|
|
|
returned if multiple refcursors are found * Works with both ODBC CALL and PostgreSQL CALL syntaxes * Query must be executed in a transaction to avoid cursors being closed * Now works when output parameters are present * Added fetch-refcursors regression test
|
|
The diff of the result was reported by Patrick Cheung and will be fixed
in the later commit.
|
|
The diff of the result was reported by Mangold Fabian and will be fixed in the later commit.
|
|
|
|
|
|
|
|
|
|
|
|
1. Remove tests for abstime type because the type was removed in PG12.
2. Update results for PG12's new floating point output format.
Results for old floating point output format were moved to result-conversions_2.out and result-conversions_3.out.
|
|
|
|
functions.
Report and patch by Grant Shirreiffs.
|
|
|
|
before sql....h. Due to this change, sqltypes.h of unixODBC can recognize SIZEOF_LONG_INT used in psqlodbc driver.
|
|
|
|
relhassubclass etc.
It would improve the performance of SQLSetPos() or SQLBulkOperations() very much in some cases.
Per report from Takayuki Tsunakawa.
|
|
1. Add a SQLSetPos(.., SQL_REFRESH, ..) call so that the test passes SC_pos_reload().
2. Add a primary key to pos-update-test table(KEYSET-DRIVEN cursor needs non null int4/oid unique key).
3. Add expected/positioned-update-test_1.out for KEYSET-DRIVEN cursors.
|
|
Because there's no "unknown" output column in PG10 servers, it seems meaningless to test "unknown" case.
|
|
|
|
|
|
along with the change of parse-test.
|
|
|
|
|
|
|
|
It is neccesary because the strings are appended later.
|
|
null-terminated.
|
|
specification of UseDeclareFetch option.
Also change the cursor type from SQL_CURSOR_STATIC to SQL_CURSOR_KEYSET_DRIVEN though the type is changed to SQL_CURSOR_STATIC with UseDeclareFetch option.
|
|
Support the platforms e.g. FreeBSD which satisfies __STDC_UTF_16__ (but not satify __STDC_ISO_10646__) using mbrtoc16() and c16rtomb().
Use the functions bindpara_msg_to_utf8(), bindpara_wchar_to_msg(),
bindcol_hybrid_estimate(), bindcol_hybrid_exec(), bindcol_localize_estimate()
and bindcol_localize_exec() which hide the difference of platforms instead of
platform specific functions. They are implemented using already implemented
wstrtomsg(), msgtowstr(), wcs_to_utf8(), utf8_to_wcs_lf() and newly implemented
mbstoc16_lf(), c16tomsb(), ucs4_to_ucs2_lf(), ucs2_to_ucs4().
Add eucJP encoding case to wchar-char test.
[Minor changes]
Add conversion error check between unicode and the current locale.
Rename buf to send_buf in ResolveOneParam() so that grep or find can them find easily.
Separate "unicode_support.h" from "psqlodbc.h"
Change convert_linefeeds() from static to external.
Add AC_CHECK_FUNCS(mbrtoc16 c16rtomb) to Makefile.am.
Remove win_unicode.c from psqlsetup.vcxproj.
|
|
|
|
|
|
|
|
1. If there are OUT, INOUT or TABLE arguments, ignore RETURN values.
2. OUT parameters of functions with returning SETOF should be treated as SQL_RESULT_COL rather than SQL_PARAM_OUTPUT.
3. Also treat table output arguments as SQL_RESULT_COL because functions returning table are equivalent to using one or more OUT parameters plus marking the function as returning SETOF record (or SETOF a single output parameter's type).
Also add 5 test cases about SQLProcedureColumns to catalogfunctions-test.
|
|
|
|
SQL_UPDATE, ..). For the bug fix, modify positioned-update-test so that it includes repeated updates.
|
|
|
|
regression test. Switch declare/fetch mode in Windows regression test using this functionality.
|
|
psqlodbc_test_dsn_ansi.
|
|
|
|
|
|
|