summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e7e5298)
A few more Unicode changes I missed
Made one more param in the wxDb constructor be a const (like it should have been).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9289
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
public:
wxDbConnectInf();
public:
wxDbConnectInf();
- wxDbConnectInf(HENV henv, const wxString &dsn, const wxString &userID="",
- const wxString &password="", const wxString &defaultDir="",
- const wxString &description="", const wxString &fileType="");
+ wxDbConnectInf(HENV henv, const wxString &dsn, const wxString &userID=wxT(""),
+ const wxString &password=wxT(""), const wxString &defaultDir=wxT(""),
+ const wxString &description=wxT(""), const wxString &fileType=wxT(""));
void FreeHenv();
// Accessors
void FreeHenv();
// Accessors
- const HENV GetHenv() { return Henv; };
- const HENV &GetHenvAddress() { return Henv; };
+ const HENV &GetHenv() { return Henv; };
const wxChar *GetDsn() { return Dsn; };
const wxChar *GetDsn() { return Dsn; };
wxDbColFor();
~wxDbColFor();
wxDbColFor();
~wxDbColFor();
int Format(int Nation, int dbDataType, SWORD sqlDataType, short columnSize, short decimalDigits);
};
int Format(int Nation, int dbDataType, SWORD sqlDataType, short columnSize, short decimalDigits);
};
#endif
// Public member functions
#endif
// Public member functions
- wxDb(HENV &aHenv, bool FwdOnlyCursors=(bool)wxODBC_FWD_ONLY_CURSORS);
+ wxDb(const HENV &aHenv, bool FwdOnlyCursors=(bool)wxODBC_FWD_ONLY_CURSORS);
void Initialize();
bool Open(const wxString &Dsn, const wxString &Uid, const wxString &AuthStr); // Data Source Name, User ID, Password
void Initialize();
bool Open(const wxString &Dsn, const wxString &Uid, const wxString &AuthStr); // Data Source Name, User ID, Password
+ bool Open(wxDbConnectInf *dbConnectInf);
bool Open(wxDb *copyDb); // pointer to a wxDb whose connection info should be copied rather than re-queried
void Close(void);
bool CommitTrans(void);
bool Open(wxDb *copyDb); // pointer to a wxDb whose connection info should be copied rather than re-queried
void Close(void);
bool CommitTrans(void);
wxDBMS Dbms(void);
bool ModifyColumn(const wxString &tableName, const wxString &columnName,
int dataType, ULONG columnLength=0,
wxDBMS Dbms(void);
bool ModifyColumn(const wxString &tableName, const wxString &columnName,
int dataType, ULONG columnLength=0,
- const wxString &optionalParam="");
+ const wxString &optionalParam=wxT(""));
bool FwdOnlyCursors(void) {return fwdOnlyCursors;}
bool FwdOnlyCursors(void) {return fwdOnlyCursors;}
// This function sets the sql log state for all open wxDb objects
// This function sets the sql log state for all open wxDb objects
-bool wxDbSqlLog(wxDbSqlLogState state, const wxChar *filename = SQL_LOG_FILENAME);
+bool wxDbSqlLog(wxDbSqlLogState state, const wxString &filename = SQL_LOG_FILENAME);