Włodzimierz Skiba
8e3f3880bc
Include wx/object.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-19 10:02:20 +00:00
Włodzimierz Skiba
d23ec02c6a
Minor source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 14:47:39 +00:00
Julian Smart
7eeba5114c
Applied patch [ 1304191 ] support for MEMO fields
...
Francesco Montorsi
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 13:15:04 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Julian Smart
e716b9bee1
Applied patch [ 1286701 ] fix for compiling odbc with MS VC8 on x64
...
also define SQLTCHAR for DMC++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-16 11:03:53 +00:00
George Tasker
f6a9f9ad28
Added support (barely tested) for MaxDB from MySQL
...
Added dbmsFutureX to the database enumerations to allow for adding support for new databases between releases of wxWidgets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 14:41:12 +00:00
Julian Smart
92850d6b2f
Applied patch [ 1117207 ] changed the test for SQL_C_WCHAR
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-10 16:31:13 +00:00
George Tasker
81b8978525
Unicode build fixes for GTK not knowing what SQL_WCHAR and SQL_WVARCHAR are in non-unicode builds
...
Removed old commented out code that is not needed (cleanup)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-02 14:37:16 +00:00
Włodzimierz Skiba
d8d267726a
Warning fixes, source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-29 21:19:39 +00:00
George Tasker
38ae3a1019
Added more support for using SQL_WVARCHAR and SQL_WCHAR data types
...
Blind postgres fixes for calls to TableExists() and TablePrivileges() inside the Open() function to not pass the user name when postgres is expecting the schema. We REALLY need to add schema support...wish I had the time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-28 22:30:27 +00:00
George Tasker
549c8cc2fe
More parameter variable names fixed to make them more readable by replacing abbreviations with the full word
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-28 21:32:38 +00:00
George Tasker
b803274045
Non-standard abbreviations of words in function/variable names changed to standard abbreviations or the entire word (e.g. colNo is now colNum)
...
If SetColDef is called with an out of range index, the function in debug will throw an assert msg, and call wxLogDebug(), and then return without doing anything. The function now returns a boolean to indicate if the column definition was successfully created or not
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-28 21:10:12 +00:00
George Tasker
215a0070c1
Firebird DB support added. Basic testing is done, and appears to work fully. Need real users to test the additions please
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-28 00:33:09 +00:00
Julian Smart
5c2cd0f67a
Fix compilo on Unix using src/iodbc which has no SQL_C_WCHAR
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-02 09:42:03 +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
Włodzimierz Skiba
39d350d692
Blind fix to lack of sql types.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:58:46 +00:00
Włodzimierz Skiba
254a21292b
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-05 15:38:40 +00:00
George Tasker
f292d0ec67
ClearMemberVar() did not correctly handle columns defined as SQL_C_LONG
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-14 11:08:21 +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
George Tasker
d23a4aa781
Patch # 984209 - Calls to wxFind() were using an old signature. They now check for wxNOT_FOUND
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-02 19:05:42 +00:00
George Tasker
160155e6ec
Patch # 984215 - Insert was returning SUCCESS after an error
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-02 18:54:15 +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
fd9b9198f8
BLOB fix - if the type for the BLOB column is SQL_C_CHAR, CbValue is now set to SQL_NTS to indicate that the data is null terminated. It is strongly recommended to use SQL_C_BINARY for the BLOB type, not SQL_C_CHAR
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-13 02:04:51 +00:00
George Tasker
c9b6d7964d
More BLOB fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-13 01:56:18 +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
e9ed92a2fd
[SF#777752] Applied a slight variation of this patch, pulling out the code that set the CbValue for the column from ::bindParams() to a new private function names ::setCbValueForColumn(). ::bindParams() now calls this function, as do both version of ::SetColNull()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-12 17:16:05 +00:00
George Tasker
35ac11045c
Indentation formatting fix. No source code affected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-12 16:47:17 +00:00
George Tasker
76ea166498
Use of blobs with a binding to a SQL_C_BINARY type column definition was not working correctly. The code should now work for SQL_C_BINARY and SQL_C_CHAR column bindings, though I have only tested with SQL_C_BINARY. The original code will be used if the column binding is not SQL_C_BINARY or SQL_C_CHAR
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-12 14:22:25 +00:00
Dimitri Schoolwerth
52410d542e
Removed usage of deprecated methods (patch #827023 ); Slight code cleanup.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-04 13:16:32 +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
George Tasker
e7c9692f16
Added a check for a '.' in the column name before prepending a table name to the column name to avoid incorrect TABLE.COLUMN names when using a FROM clause
...
SF PATCH#766404 - SetColNull() was not correctly setting CbValue = SQL_NULL_DATA so that NULL columns still appeared to have data in some cases
Cleaned up some internal variable naming conventions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-04 18:55:01 +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
Jouk Jansen
d171743ed3
Committing in .
...
Fixes needed for OpenVMS
Modified Files:
wxWindows/include/wx/x11/private.h
wxWindows/include/wx/x11/privx.h
wxWindows/src/common/dbtable.cpp
wxWindows/src/common/descrip.mms
wxWindows/src/motif/bmpmotif.cpp
wxWindows/src/motif/descrip.mms wxWindows/src/x11/bitmap.cpp
wxWindows/src/x11/utilsx.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-09 10:53:52 +00:00
Julian Smart
5962bdb85a
Applied patch [ 701238 ] Added BLOB support to dbtable.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 15:28:18 +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
George Tasker
9d9436810d
Fixes the problem with VARCHAR fields not allowing the stored string to ever be lengthened beyond the original stored length of the field. NOTE: There may be a problem with NULLs now, so this needs further testing. I'm not sure if this affects NULL column handling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-05 14:41:09 +00:00
George Tasker
ff294e0eba
Added a wxASSERT_MSG in ::SetColDefs() to trap for the user sending an index that is larger than the number of columns defined for the table
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-13 17:48:40 +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
George Tasker
4888e623a6
Added checks for wxUSE_IOSTREAMH to #include the correct header file based on setup.h settings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-15 14:49:31 +00:00
George Tasker
bb064193a7
Removed a call to Upper() on the table name when building an UPDATE statement. Patch #488365 submitted by Christophe Massaloux
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-03 14:52:29 +00:00
Gilles Depeyrot
6bbff0aac1
corrected blind fix of missing .c_str()s
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-25 12:50:15 +00:00
Vadim Zeitlin
1d6f23483a
blindly added missing .c_str()s to fix compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-25 00:17:26 +00:00
George Tasker
1dee6b3992
MS Access support fix
...
Standardized the parameter names for "colNo" in all places
A few more unicode adjustments (but Unicode is still not supported by these classes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-23 00:39:21 +00:00