[root] / trunk / tree / tree / src / TTreeSQL.cxx Repository:
ViewVC logotype

Log of /trunk/tree/tree/src/TTreeSQL.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 46488 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 12 10:48:28 2012 UTC (2 years, 3 months ago) by pcanal
File length: 22952 byte(s)
Diff to previous 44507
From haggerty@bnl.gov:

When creating a TTree from a particular database table as in 
TTreeSQL *dbtree = new TTreeSQL( serv, "daq", "gl1scalers")
The table had a column names raw_10 and then later, raw_1
which seems to me to have caused the failure due to the use
of Index rather than CompareTo

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 22948 byte(s)
Diff to previous 43270
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 43270 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 6 22:46:11 2012 UTC (2 years, 10 months ago) by pcanal
File length: 22913 byte(s)
Diff to previous 41697
Fix cov 32841 (deref null return value)

Revision 41697 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 1 21:03:41 2011 UTC (3 years, 2 months ago) by pcanal
File length: 22902 byte(s)
Diff to previous 41244
Fix medium impact coverity reports

Revision 41244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 19:42:35 2011 UTC (3 years, 3 months ago) by pcanal
File length: 22748 byte(s)
Diff to previous 41015
Fix Coverity issues:

TBranchSTL: cov 34339 Resource leak (false positive)
TTableDescriptor.cxx: cov 34219,34220 explicit null dereference
TSQLStructure.cxx: cov 34204,34205,34206 Explicit null dereferenced 
TTabCom.cxx: cov 34168 Explicit null dereferenced 
TClassRef.cxx: cove 34165 Explicit null dereferenced (false positive but still confusing coding).
TBufferXML.cxx: 34070 Explicit null dereferenced
TFriendProxyDescriptor.cxx: cov 34066 Uninitialized scalar field
TTreeCloner.cxx: cov 34034057 Dereference null return (stat) 63 Uninitialized scalar field 
TParallelCoordEditor.cxx: 34051,34059,34060,34061 Dereference null return value
TParallelCoord.cxx: 34050,34056, 34057 Dereference null return (stat) 
TBranchProxy.h: 34048 Dereference null return value 
TBranchProxy.cxx: 34043,34044,34045 Dereference null return value
TTree.cxx: 34039 Dereference null return value
TTreePlayer.cxx: 34037 Dereference null return value 
TLeafC.cxx: 34036 Dereference null return value

Revision 41015 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 27 07:29:59 2011 UTC (3 years, 3 months ago) by pcanal
File length: 22722 byte(s)
Diff to previous 38205
Fix gcc 4.6.1 warning  variable ‘added’ set but not used

Revision 38205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 24 17:45:39 2011 UTC (3 years, 10 months ago) by pcanal
File length: 22736 byte(s)
Diff to previous 38202
Properly find the column even if they were not created by TTreeSQL itself.   Fix the loading of data for the last column

Revision 38202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 24 16:33:20 2011 UTC (3 years, 10 months ago) by pcanal
File length: 22433 byte(s)
Diff to previous 35943
Allow TTreeSQL to see temporary tables

Revision 35943 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 15:57:25 2010 UTC (4 years, 3 months ago) by brun
File length: 22134 byte(s)
Diff to previous 32576
use snprintf

Revision 32576 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 11 22:15:31 2010 UTC (4 years, 10 months ago) by pcanal
File length: 22131 byte(s)
Diff to previous 32339
From Pietro Cortese, update for oracle, see https://savannah.cern.ch/bugs/?57995

Revision 32339 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 12 23:34:41 2010 UTC (4 years, 11 months ago) by pcanal
File length: 22075 byte(s)
Diff to previous 30663
Improve performance of TBranch::DropBaskets in the common case (only one basket).
Prevent DropBaskets from dropping baskets that are not stored individually (and hence potentially not recoverable).
Prevent DropBaskets from leaking TBaskets baskets.

Revision 30663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 11 22:11:51 2009 UTC (5 years, 3 months ago) by pcanal
File length: 22011 byte(s)
Diff to previous 30641
TOracleServer:
Implement GetColumns
Fix GetTable to return the result in the correct order
Fix GetTableInfo to properly handle the fact that oracle upper case all the names.

TTreeSQL:
Improve error handling
Properly handle the fact that oracle upper-cases all the names
Fix more sql query syntax

Revision 30641 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 9 02:16:48 2009 UTC (5 years, 3 months ago) by pcanal
File length: 21784 byte(s)
Diff to previous 24592
remove unnecessary 'null' in the sql query to create branches

Revision 24592 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 27 17:32:03 2008 UTC (6 years, 6 months ago) by pcanal
File length: 21792 byte(s)
Diff to previous 22902
Adapt TTreeSQL to the changed made in TTree in r24454 (TTreeSQL now needs to explicit create baskets)

Revision 22902 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 31 09:48:42 2008 UTC (6 years, 9 months ago) by rdm
File length: 21584 byte(s)
Diff to previous 22419
move tree, treeplayer and treeviewer under tree meta directory.

Revision 22419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21584 byte(s)
Diff to previous 20882
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed. 

Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included. 

Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21564 byte(s)
Diff to previous 20173
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20173 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 2 11:52:49 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21564 byte(s)
Diff to previous 19826
Second batch of changes to support the new type Float16_t.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21502 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21554 byte(s)
Diff to previous 14745
remove :$ from tag line

Revision 14745 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 19 08:22:26 2006 UTC (8 years, 9 months ago) by rdm
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21564 byte(s)
Diff to previous 14000
Change the TError.h macros:
Assert   ->  R__ASSERT
Check    ->  R__CHECK
Change the TCollection.h macro:
ForEach  ->  R__FOR_EACH
This to avoid potential problems due too trivial macro names.
The old macros will be removed in the next release. Currently
they will print out warning messages with the advice to move
to the new macro names.

Revision 14000 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 7 15:25:52 2006 UTC (8 years, 11 months ago) by pcanal
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21601 byte(s)
Diff to previous 13998
remove debug statement

Revision 13998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 6 21:26:29 2006 UTC (8 years, 11 months ago) by pcanal
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21658 byte(s)
Diff to previous 13967
Remove a couple of significant memory leaks and a useless re-querying of the data

Revision 13967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 31 20:59:24 2006 UTC (8 years, 11 months ago) by pcanal
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21319 byte(s)
Diff to previous 13207
fix the leaflist generated for string columns

Revision 13207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 11 22:16:04 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 21318 byte(s)
Diff to previous 12602
Update the spacing and documentation to match the coding rule

Revision 12602 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 3 02:26:31 2005 UTC (9 years, 4 months ago) by pcanal
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 20739 byte(s)
Diff to previous 12548
Fix to follow coding conventions

Revision 12548 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 29 10:57:28 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 20736 byte(s)
Diff to previous 12489
Changes to make the rulechecker happy in directory tree.

Revision 12489 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 16 13:51:49 2005 UTC (9 years, 5 months ago) by pcanal
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 20679 byte(s)
Diff to previous 12483
avoid redundant tests

Revision 12483 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Aug 15 21:29:58 2005 UTC (9 years, 5 months ago) by pcanal
Original Path: trunk/tree/src/TTreeSQL.cxx
File length: 20570 byte(s)
First version of TTreeSQL facility.
This allow the storing and restoring of TTree into an SQL database

  TSQLServer *dbserver = TSQLServer::Connect("mysql://localhost:3306/rootDev","rootdevel", "r00tg6ys");
  dbserver->Query("drop table ntuple;");
  ntuple  = new TTreeSQL(dbserver, "rootDev", "ntuple");

If the database contain a table named ntuple, this will connect to it
and let you use any of TTree functionality on (Scan, Draw, etc.)

If the database does not contain a table named ntuple, it will created
once you called the first Fill on the TTree.

This version supports the leaflist type of branches.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9