ODBC: Fixed for C++11

git-svn-id: svn://ultimatepp.org/upp/trunk@7212 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-10 09:51:08 +00:00
parent 5c9d6bde6a
commit 1745522f2e
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ class TimeStop : Moveable<TimeStop> {
public:
dword Elapsed() const { return GetTickCount() - starttime; }
double Seconds() const { return (double)Elapsed() / 1000; }
String ToString() const;
void Reset();

View file

@ -361,7 +361,7 @@ bool ODBCConnection::Execute()
if(!IsOk(SQLPrepare(session->hstmt, (SQLCHAR *)~statement, statement.GetCount())))
return false;
parse = false;
bparam = param;
bparam = pick(param);
param.Clear();
for(int i = 0; i < bparam.GetCount(); i++) {
Param& p = bparam[i];