summaryrefslogtreecommitdiff
path: root/setup.c
AgeCommit message (Collapse)Author
2019-05-19Fix test_connection() in setup.c so that settings of conn_settings and pqopt ↵Hiroshi Inoue
option are reflected properly.
2018-05-02Revise ConfigDSN() so that it handles the 4th parameter(lpszAttribues) ↵Hiroshi Inoue
correctly. Per report from Haribabu Kommi.
2017-09-07Don't forget to set default values when registering dsn via RegisterRegDsn.Hiroshi Inoue
2017-08-15Review the use of mylog().Hiroshi Inoue
Use macro MYLOG instead of function mylog in preparation for later changes and unify mylog() and inolog() using level parameter. Enable the compiler to check the format string against the parameter of mylog() by adding __attribute__((format(printf,.,.))) to the declaration of mylog(GCC only). Using this mechanism, check and fix many discordances of parameters.
2017-06-09Rename snprintf_add() snprintfcat().Hiroshi Inoue
Use SPRINTF_FIXED() or SPRINTFCAT_FIXED() where they are available.
2017-06-09Avoid a confusing use of snpritf().Hiroshi Inoue
2017-06-05Cleanup the code by replacing strcpy() by strncpy_null(), strlcat() or ↵Hiroshi Inoue
snprintf_add().
2017-05-31In psqlodbc ODBC Driver Setup dialog, reflect the updates of the initial ↵Hiroshi Inoue
dialog to other dialogs.
2017-05-31Display MSDTC error messages properly in Distributed Transaction related ↵Hiroshi Inoue
settings test.
2017-05-28Unify copyAttributes() and copyCommonAttributes() into copyConnAttributes().Hiroshi Inoue
2017-05-28Revise the update of ConnInfo using DSN and/or connection string.Hiroshi Inoue
Overwrite ConnInfo by driver's default -> Dsn entry -> connection string in order. As a result, remove getDSndefaults() and the second parameter(overwrite) of getDSNinfo().
2017-05-24Removed an external variable "globals".Hiroshi Inoue
Also removed driver_optionsProc(). Use getDriverNameFromDSN() for unixODBC as well as Windows.
2017-05-11Reorganize the language conversion between the current locale and unicode.Hiroshi Inoue
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.
2017-04-02Handle locales in non-Windows platforms and overhaule the language system.Hiroshi Inoue
2016-09-20Separate the functionality of setup program.Hiroshi Inoue
Setup consists of setup.c, dlg_wingui.c, dlg_specific.c, mylog.c, xalibname.c, misc.c, loadlib.c and win_unicode.c.
2016-03-29setup.c:test_connection() calls EN_Constructor() twice, leaking small ↵Hiroshi Inoue
memory. [patch by tsunakawa, Takayuki]
2016-02-27Fix NULL dereferences which causes application crash. Patch by Tsunakawa, ↵Hiroshi Inoue
Takayuki.
2016-02-27Correct a cast.Hiroshi Inoue
2015-01-22Miscellaneous cleanup.Heikki Linnakangas
* Mark functions used only in same file as static. * Remove unused 'encoding' argument from msgtowstr and wstrtoms (all callers passed NULL). * Silence remaining compiler warnings on 64-bit Windows about assigning size_t to int without cast. * Remove superfluous FORMAT_INT4/FORMAT_UINT4 defines. * Remove useless dollar_quote argument from findTag (it was always '$'), and add comment. * Turn OID_NAME into a #define, to avoid a useless sprintf. * Turn the mapFuncs array into structs, for clarity, and add comment.
2015-01-19Remove long-since obsolete FAR/NEAR decorations from pointers.Heikki Linnakangas
We haven't supported a segmented memory model for ages, probably never.
2015-01-06Fix building with MSDTC=no.Heikki Linnakangas
2014-12-31Use libpq for everything.Heikki Linnakangas
Instead of speaking the frontend/backend protocol directly, use libpq's functions for executing queries. This makes it libpq a hard dependency, but removes direct dependencies to SSL and SSPI, and a lot of related code.
2014-10-29Remove support for ODBC versions < 3.51.Heikki Linnakangas
Older versions have been obsolete for a very long time by now. Removing the support lets us get rid of a lot of code that no-one has in practice been even compiling for a long time. Michael Paquier
2014-10-08Cleanup the code for *test* button and add the functionality to testHiroshi Inoue
MSDTC support.
2014-06-13Make sure that the psqlodbc ANSI driver is ODBC3.5.Hiroshi Inoue
2014-03-11Whitespace and indentation fixes.Heikki Linnakangas
This also changed the file permissions stored in git for a couple of header files, removing the executable bit. Didn't realize they were different from all the others, but apparently my editor decided to change them. Now they're the same as all the other files, which seems good. Michael Paquier and me.
2014-02-20Fix compilation errors caused by the commit ↵Hiroshi Inoue
3116f70ab51d0218ceff241fd1323f436bb4fd60.
2013-07-10Revise MSDTC support.Hiroshi Inoue
1. Remove pointlessly complicated AsyncThreads stuff. Instead use _beginthread() to clean up threads. 2. Make pgenlist.dll from the structure change of ConnectionClass. The driver dlls exports the functions described in connexp.h which are used by pgenlist.dll. 3. Isolate the current communication path if necessary. While an IAsyncPG object is alive, a ConnectionClass object (hereinafter refered to as conn-obj) is assigned to it. The assignment has to be changed in the following cases. a) SQLDisconnect() is called for the current connection handle which is assigned to an IAsyncPG object. Allocate another conn-obj and move the current communication path (*sock* member of the current conn-obj) to the new conn-obj. The communicaation path is lost from the current conn-obj and the new conn-obj is assigned to the IAsyncPG object. b) Another (global) transaction is about to begin but the current global transaction is not PREPARED yet. Same as case a) but will open a new communication path for the current conn-obj for the subsequent ODBC API calls. c) Another (global) transaction is about to begin and the current global transaction is already PREPARED. Allocate another conn-obj and open a new communication path for the conn-obj. The new conn-obj is assigned to the IAsyncPG object only to issue COMMIT/ROLLBACK PREPARED command. communication pass (*sock* member of the current ConnectionClass object) to the new object and change the state of the current object NOT CONNECTED. The IAsyncPG object uses new object instead of the current object. In case b) the current object will open a new communication path.
2013-06-21Reduce the memory usage of ConnectinClass objects by changing their largeHiroshi Inoue
fixed length text fields to variable ones. Because changes are applied to percent-encoded fields this time, password field is also a target of this change.
2013-04-20Improve the handing of installation errors.Hiroshi Inoue
2013-04-20Fix a DataSource registration crash bug on 64bit Windows.Hiroshi Inoue
2013-04-18Fix references to 'notice.txt'.Heikki Linnakangas
notice.txt doesn't exist anymore, the copyright and license information is in readme.txt now. Update references in comments.
2009-08-27Changes for 8.4.0101.Hiroshi Inoue
1.Fix a column uodatability problem reported by Tom Goodman. 2.Display SSL mode list properly on setup dialog. 3.Don't truncate the result of msgtowstr()/wstrtomsg(). 4.Implement ConfigDriver() function.
2009-04-06Improve the handling of error messages at connection time.Hiroshi Inoue
2009-01-181) Fix a bug reported by Milen Manev that SQLExec *select for a table* -> ↵Hiroshi Inoue
SQLDescribeCol() -> add a column to the table -> SQLExec *select for the table* -> SQLDescribeCol() for the added column causes a bad result. 2) Use strncpy_null() instead of strncpy().
2007-11-04Correct the flow of trial of multi protocols and fix related bugs about ↵Hiroshi Inoue
handling of connection errors.
2006-12-16The version is now 8.2.0203.Hiroshi Inoue
1. Fix a bug which forgets unnamed plans too early especially when handling large objects. 2. Don't treat charcters whose value >= 128 as alphanumeric in case of conversion of binary data to bytea. 3. Change ConfigDSN() so that it takes the options in Setup Dialog page 1 into account. 4. Simplify the memory management of statements'columns info so as to prevent memory leaks or a crash in parse_statement etc. 5. SQLTables("", SQL_ALL_SCHEMAS. "", ..) now returns a list of valid schemas. 6. SQLTables("", "", "", SQL_ALL_TABLE_TYPES) now returns a list of valid table types. 7. SQLGetInfo SQL_DATABASE_NAME now returns the database name. 8. Improve the automatic setting mechanism of the client_encoding for Windows code page 125x (ANSI drivers only) .
2006-12-11More changes for setup Dialog test button operation.Hiroshi Inoue
Fix the bug SQLStatistics ORDINAL_POSITION starts at 2 for PK index.
2006-12-08Fix a bug about test button operation.Hiroshi Inoue
2006-10-23The version is now 8.2.0105.Hiroshi Inoue
1. SQLStatistics now returns indices based on expression also. 2. Add a TEST button on the setup dialog.
2006-09-11The version is now 8.1.0102Hiroshi Inoue
1. Compensate a loss of report of being Jet when using MS Access. 2. Add NULL <-> "" date converion function for FOXPRO and revise parse/describe/execute mechanism. 3. Miscellaneous type changes for 64 bit drivers.
2006-04-08Commit the changed files from the enhanced branchDave Page
2005-12-17added support for ; as delimiter for ConfigDSNLudek Finstrle
2005-12-09Ensure buffer is long enough for all option names (bug 1000477) [Ludek Finstrle]Dave Page
2005-09-19Socket code is removed from the source. Now, psqlodbc driver relies ↵Anoop Kumar
completely on Libpq for the communication.
2005-07-13New version of the driver with libpq based comms layer, courtesy of Anoop ↵Dave Page
Kumar of Pervasive PostgreSQL. Version number bumped, and extra strings modified in the resource file to make it obvious when the libpq version of the driver is being run.
2004-07-21Make the driver ODBC 3 only.Dave Page
2003-05-14Fix compilation errors for the ODBC2.50 driver.Hiroshi Inoue
2003-05-121) Add a *bytea as LO* DSN option button.Hiroshi Inoue
2) Add japanese resources to psqlodbc.rc. 3) Add a dialog for the driver change.
2003-04-231) Avoid password leak in the log.Hiroshi Inoue
2) Reduce time() calls for the performance. 3) Improve the handling of per Driver resource. 4) #define HAVE_STRTOLL etc.