mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
ConditionVariable test
git-svn-id: svn://ultimatepp.org/upp/trunk@938 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e02bb39bf6
commit
2dedb84abb
4 changed files with 60 additions and 2 deletions
|
|
@ -5,11 +5,14 @@ using namespace Upp;
|
|||
CONSOLE_APP_MAIN
|
||||
{
|
||||
ODBCSession session;
|
||||
session.Connect("DRIVER=SQL Server Native Client 10.0;SERVER=QUAD\\SQLEXPRESS;DATABASE=Holly;UID=test;PWD=koblih;");
|
||||
session.LogErrors();
|
||||
session.SetTrace();
|
||||
if(!session.Connect("DRIVER=SQL Server Native Client 10.0;SERVER=QUAD\\SQLEXPRESS;DATABASE=Holly;UID=test;PWD=koblih;"))
|
||||
return;
|
||||
LOG("Connected!");
|
||||
SQL = session;
|
||||
Sql sql;
|
||||
sql.Execute("select ID, TEXT, SINCE, TILL from SUBJECT_ATTR where SINCE > ?", Date(2009, 2, 20));
|
||||
sql.Execute("select AID, TEXT, SINCE, TILL from SUBJECT_ATTR where SINCE > ?", Date(2009, 2, 20));
|
||||
// sql.Execute("select ID, TEXT, SINCE, TILL from SUBJECT_ATTR where ID > ?", 1700);
|
||||
while(sql.Fetch()) {
|
||||
for(int i = 0; i < sql.GetColumns(); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue