Ryan Norton
08429a81ca
fixup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 20:39:44 +00:00
Ryan Norton
f110f39530
[ 955006 ] wxDb query with column information (modded to overload instead of creating a new function)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 20:32:34 +00:00
George Tasker
e4e4557315
Unicode support
...
Several error conditions when connecting to databases are corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 21:31:12 +00:00
Jouk Jansen
fa06876d15
Committing in .
...
Patches to compile on OpenVMS
Modified Files:
wxWidgets/descrip.mms wxWidgets/src/common/db.cpp
wxWidgets/src/common/stream.cpp
Added Files:
wxWidgets/src/xml/descrip.mms wxWidgets/src/xrc/descrip.mms
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-02 07:13:19 +00:00
Julian Smart
815cb839b5
SQLINTEGER not defined in iodbc
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 08:18:40 +00:00
Włodzimierz Skiba
1b941f2d31
Warning fixes for OpenWatcom.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 05:56:07 +00:00
Włodzimierz Skiba
564c92d95b
Warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 16:12:58 +00:00
Jouk Jansen
6dfd822aca
Committing in .
...
Added some type casts to silence the compiler on OpenVMS
Modified Files:
wxWidgets/src/common/db.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 06:45:11 +00:00
Włodzimierz Skiba
68379eaf0a
Source cleaning: whitespaces, tabs, TRUE/true, FALSE/false, -1/wxID_ANY/wxDefaultCoord, !!/!IsEmpty().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 12:56:07 +00:00
Václav Slavík
7e559cd8f4
updated license info: Remstar gace permission to change it to wxWindows License with no strings attached
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-21 11:49:18 +00:00
Mattia Barbon
e3f8f04d8e
Compilation fixes for wxUSE_STL == 1.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-20 13:10:16 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
George Tasker
2cb4351487
Unicode compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-18 01:55:15 +00:00
George Tasker
0907ea9c58
[SF#789459] Add support for connection strings. The patch originally submitted was not comprehensive enough to use for the connection caching, so a significant number of additional changes were added to support opening a connection with a connection string
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-12 19:41:03 +00:00
George Tasker
b26e2b55ca
[SF#851487] wxDb::Catalog() function was attempting to determine if the table that was being accessed was different than the last table being accessed BEFORE the table name of the current table was read in, causing an issue when more than one table was present in the database
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-12 16:49:49 +00:00
George Tasker
d2129c82bf
The wxDb::Open() function that takes a wxDbConnectInf() now has a second optional parameter 'failOnDataTypeUnsupported' that defaults to TRUE to maintain current behavior. This allows users to specify FALSE if they want to try to continue
...
wxDb::getDbInfo() function will now not treat SQL_SUCCESS_WITH_INFO as a failure when checking for supported features.
Reformatting of some text, and removal of old commented out code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-12 14:10:27 +00:00
Vadim Zeitlin
f9ebf98b96
fixed DLL build (patch 879706)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 22:43:18 +00:00
Dimitri Schoolwerth
caf412d6f2
applied patch #926140 : "warning cleaning"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-06 15:34:53 +00:00
George Tasker
9af163d74d
Added a parameter 'failOnDataTypeUnsupported' to getDbInfo (that defaults to TRUE keeping current functional behavior intact)), that will allow the user to override whether a call to getDbInfo() should fail immediately if a data type request reports back that it is unsupported/unavailable
...
fixed issues with wxDb::DBMS() that were not correctly detecting MySQL databases using MySQL v4. also removed erroneous/duplicated code in this function that looked like a result of a bad merge at some point
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 14:50:09 +00:00
Julian Smart
c27be5db0b
Added SQLTCHAR for non-Windows platforms, and added missing
...
wxFputs to wxchar.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 10:59:14 +00:00
Julian Smart
8a39593ebe
Applied patch [ 808050 ] fixes for WXUNIVERSAL and UNICODE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 14:03:09 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Václav Slavík
34fdf76231
added build options sanity checks into all main libraries
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-04 13:19:44 +00:00
Václav Slavík
bb41dcbe3a
moved DB classes into wxODBC library
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-02 19:14:54 +00:00
Vadim Zeitlin
3cac31513f
removed unnecessary #if wxUSE_GUIs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-18 21:49:40 +00:00
Vadim Zeitlin
7fd4e7e1c2
attempt to fix gcc printf() warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-02 22:50:12 +00:00
Julian Smart
9c136858af
Applied patch [ 649284 ] Fix wxODBC to work with MySQL 2.x
...
The current sample/db fails to build indexes with
MyODBC v2.50.39
This is due to two problems:
(1) wxDb::ModifyColumn() created a SQL statement that
was not correctly formed for MySQL. This problem
caused wxDbTable::CreateIndex() to fail to set the
columns that are going to indexes to be NOT NULL. I
fixed this by added a special case for MySQL.
(2) When creating an Index on a VARCHAR column,
MySQL requires a key length to be specified.
wxDbTable::CreateIndex() current does not do this. I
fixed this problem by adding code to do this.
The attached patch file patches dbtable.cpp and db.cpp
on the 2.5 branch.
gor Mikolic-Torreira
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-09 10:50:14 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Julian Smart
9f4de2dcf8
Applied patch [ 566816 ] adds xBase type for Sequiter's SQL/ODBC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-16 12:43:07 +00:00
Vadim Zeitlin
a327b52090
fixed compilation under Unix where SQL_DATETIME is not defined
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-25 15:11:24 +00:00
George Tasker
e25cdb868f
Semi-Blind fixes for trying to handle different versions of MySQL and MySQL windows drivers
...
Hopefully better handling of DATE type fields
New parameter added to optionally not have database connections fail if a basic data type (like DATE) is not reported as supported by the datasource
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-22 13:43:15 +00:00
Vadim Zeitlin
903506828b
fixes for the compilation warnings with Sun CC:
...
1. some fixes for "String literal to char * conversion" warnings (many
more left in the *.xpm files)
2. fixes for "assignment of function to extern "C" function"
3. a few other miscellaneous ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-09 12:49:12 +00:00
George Tasker
5bdad317aa
"char *" changed to "wxChar *" in several places
...
"Documentation needed" comments removed as the function(s) are now documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-23 00:42:10 +00:00
George Tasker
243d4b3603
Added code to handle SQLSERVER, ACCESS, and MSDE allowing spaces in table names and column names (ARRRRGH! -> MS)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-04 16:44:08 +00:00
David Webster
2e57a9efc5
true vs TRUE again.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-13 17:42:16 +00:00
George Tasker
e262868d43
::Catalog() function was failing against several databases as the PRECISION and LENGTH values returned were larger (more bytes) than the variable that was bound for holding the returned value
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-12 19:22:49 +00:00
Vadim Zeitlin
d1f5f7a44b
wxBase compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 18:37:33 +00:00
George Tasker
dba2120c77
Fixed compile problems under MingW32 compiler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 17:20:10 +00:00
George Tasker
a144affed2
Changed the 'true's and 'false's back to TRUE and FALSE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 16:54:28 +00:00
George Tasker
2c257434c3
wxDbGrid additions
...
Changed all TRUE/FALSEs to true/false
Added wxDbLogExtendedErrorMsg() function to retrieve human readable ODBC error information from the ODBC driver
General code cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:06:09 +00:00
George Tasker
081eb1b120
Removed TABs that had gotten in to the source
...
Added more INTERBASE support fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 13:46:59 +00:00
David Webster
5600884ab7
Visualage fixes for Stefan's socket implementations and true to TRUE in db.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 20:30:24 +00:00
George Tasker
5a226de062
dBase fix on creating index
...
General cleanup of code in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 01:00:56 +00:00
George Tasker
2beca66298
Added support more support for DB2
...
Added support for PervasiveSQL
Fixed MSAccess testing of DROP TABLE result when the table does not exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 20:31:24 +00:00
George Tasker
4a45223c97
Blob support fixes - still does not work, but getting there
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-16 14:03:09 +00:00
George Tasker
e938ff5e20
A couple more 'int' to UWORD conversions I had not merged into my previous checkin.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-11 14:37:48 +00:00
George Tasker
02cf6fdd85
Fixed TablePrivileges() function (I HOPE!) so it will work with all supported databases
...
All variables/parameters having to do with number of columns changed to be of type UWORD rather than int, avoiding compiler warnings and giant tables causing problems, and matching the types with the ODBC APIs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-11 14:11:02 +00:00
George Tasker
bf5423ea7d
Beginnings of BLOB support - Do not use BLOBs yet though, as they do not work, but these changes will not affect behavor of anything unless you try to create a BLOB column 0 which will fail right now.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-02-13 11:41:02 +00:00
George Tasker
da99271dcb
::Initialize() methods added to the helper classes
...
Changed wxT("") to wxEmptyString everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-02-05 13:36:33 +00:00