root [1] .L SqlRoot.C
root [2] SqlRoot * sql = new SqlRoot(“mysql://eagle.phys.klte.hu:3306/astro”,"$
root [3] sql->Getdxdy_subhisto(“4000”,“4002”,“4000”,“4002”,1000,6000);
select * from casa_4634 where x=4000 and y=4000
select * from casa_4634 where x=4000 and y=4001
select * from casa_4634 where x=4000 and y=4002
select * from casa_4634 where x=4001 and y=4000
select * from casa_4634 where x=4001 and y=4001
select * from casa_4634 where x=4001 and y=4002
select * from casa_4634 where x=4002 and y=4000
select * from casa_4634 where x=4002 and y=4001
select * from casa_4634 where x=4002 and y=4002
root [4] .ls
TROOT* Rint The ROOT of EVERYTHING
OBJ: TH1F h1 histogram : 0 at: 0x8d88210
root [5]
OK, it works. I found the bug. In the source of the SqlRoot.cxx I called the TSQLServer, TSQLResult and TSQLRow member functions as e.g.:
Let’s say that we have a TSQLRow * row, then
field = row->TSQLRow::GetField(3);
So I used the “::” to show that it is the member function of the corresponding class.
It is a bit strange though that it generates any error message. The version that doesn’t generates error: