1
/* Copyright (C) 2000-2004 Thomas Bopp, Thorsten Hampel, Ludger Merkens
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
* $Id: db_timeout.pike,v 1.1.1.1 2006/03/27 12:40:19 exodusd Exp $
20
constant cvs_version="$Id: db_timeout.pike,v 1.1.1.1 2006/03/27 12:40:19 exodusd Exp $";
23
Calendar.ISO cal = Calendar.ISO->set_language("german");
25
void test_connect(int time)
27
werror(sprintf("%s: (%d) connecting database - ",
28
cal->Second()->format_nice(), time));
29
string erg = db_handle->host_info();
31
Sql.sql_result res = db_handle->big_query("select ob_id, ob_class from "+
32
"objects where ob_id = "+
37
[sId, sClass] = res->fetch_row();
38
werror(sprintf(" [%s, %s]\n", sId, sClass));
39
call_out(test_connect, 2*time, 2*time);
43
db_handle = Sql.Sql("mysql://balduin:steam?mysql@localhost/balduinDev");
44
call_out(test_connect,1 ,1);