Parent Directory | Revision Log
Links to HEAD: | (view) (download) (as text) (annotate) |
Sticky Revision: |
Address FreeTDS 1.0 compiler warnings. * Harmonize type usage, via explicit casts where necessary (and safe). In particular, ensure that upstream tests' tds_thread_proc routines know to return DWORD rather than void* on Windows. * Ensure that any headers checking (TDS_)HAVE_* #include <config.h> first. * Keep static assertions warning-free by using _Static_assert where available. * Ensure that members of types that should be unhidden have unhidden forward declarations; likewise for their members, recursively. * Remove (comment out) unused variables and constants. * Express -2**31 and -2**63 in a manner all compilers accept happily. * For LLVM Clang, substitute __attribute__((visibility("default"))) for __attribute__((externally_visible)), which it doesn't support. * Add no-op default: cases to switch statements that don't explicitly cover all of TDS_SERVER_TYPE. * ctlib.h: #define _CS_CURS_TYPE_* to TDS_CURSOR_STATE_* rather than (typelessly) duplicating their values. * thread.h: Correct tds_thread_proc and TDS_THREAD_PROC_DECLARE; Windows threads are expected to return DWORD, not void*. * dblib/bcp.c (_bcp_get_col_data): Remove a redundant test for non-negativity. * dblib/dblib.c: Express -2?\194?\179?\194?\185 in a manner all compilers accept happily. * odbc/unittests/attributes.c: Tell the compiler fatal() will never return. * odbc/unittests/common.h: When the ODBC 3 API is available, favor SQLSetStmtAttr over SQLSetStmtOption, which is deprecated. * tds/convert.c: Rename the string_to_result function to ensure IDEs don't conflate it with the identically named wrapper macro. * tds/gssapi.c: Suppress GSSAPI deprecation warnings on Mac OS X. * tds/md[45].c: Use TDS_PUT_(U)A4 to populate word32 targets cleanly. * tds/query.c: #include <sys/socket.h> if available, for send(). * tds/sspi.c: Define _WIN32_WINNT before <config.h>, which might otherwise supply a slightly different definition. TRUNK-0.95: 487511, 554113. JIRA: CXX-9729.
Integrate FreeTDS 1.0 as an alternative to 0.64 and 0.95. * Inform the build system of the new version. * Add NCBI makefiles for all libraries and unit tests, along with wrappers for replacements sharing basenames (iconv.c) or lacking built-in guards. * Add configuration headers based on ncbiconf.h and corelib/ncbitype.h. * Substitute tds_sysdep_uint*_type (new) for unsigned tds_sysdep_int*_type, which won't work when tds_sysdep_int*_type expands to a typedef name. * Incorporate version numbers into nearly all global symbols, excepting only ODBC symbols and dbopen (per historical practice). To that end, rename the tdsdump_log function to tdsdump_do_log_ftds100; likewise for tdsdump_dump_buf. Also, omit upstream's conflicting cs_dt_crack macro definition when building FreeTDS. * Arrange for upstream test sources to #include <common/test_assert.h> last. * Arrange for automated builds to skip upstream tests that establish database objects outside tempdb, so that simultaneous test-suite runs can't interfere with each other. * Run upstream tests with explicit TDSVER settings, pending activation of protocol version autodetection (which involves code changes). * Have upstream tests honor externally supplied (via <config.h>) FREETDS_SRCDIR definitions. * Skip (or conditionalize by platform) some upstream tests altogether pending fixes. * Add a DBAPI driver around FreeTDS's CTLIB implementation; extend NCBI's test setup to cover it, bearing in mind that further changes (many propagated from our 0.95 tree) will be needed to get all tests to pass. When testing against MS SQL Server, try TDS 7.4 in addition to 7.1 (still the default, as 7.4 isn't fully backward compatible). * freetds/sysdep_private.h: Explicitly #include <config.h>. JIRA: CXX-9729.
Add upstream FreeTDS files from Branch-1_00, as of 2017-12-28. Incorporate fixes that didn't make it into the release (many of which would otherwise have wound up coming in as patches). Upstream revision ID: R1_00-80-gd40d5e91 (last commit 2017-11-29). JIRA: CXX-9729.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
NCBI Systems Team">NCBI Systems Team | ViewVC Help |
Powered by ViewVC 1.1.20 |