Skip to content
Snippets Groups Projects
  1. Dec 18, 2007
  2. Sep 19, 2007
  3. Jul 09, 2007
    • Rene Brun's avatar
      From Sergey Linev: · 923af989
      Rene Brun authored
      1. New virtual method TSQLStatement::SetMaxFieldSize(). It implemented for now only for Oracle and
         specifies maximum size in bytes, which should be used for field in read/write operation.
      
      2. Improved implementation of TOracleStatement::GetBinary method. Now not only BLOB, but also
         CLOB, LONG, BFILE, CFILE Oracle datatypes are supported for reading. Fow now BFILE and CFILE
         not supported for writing.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@19293 27541ba8-7e3a-0410-8455-c3a389f83636
      923af989
  4. Jun 06, 2007
  5. Apr 02, 2007
  6. Feb 16, 2007
  7. Feb 12, 2007
  8. Jan 16, 2007
  9. Dec 12, 2006
  10. Sep 29, 2006
  11. Sep 05, 2006
    • Rene Brun's avatar
      From Sergey Linev: · 8aa8bb83
      Rene Brun authored
      1. Support of date/time/date&time/timestamp data introduced in TSQLStatement
         All such data now can be accessed without text conversion.
         The following methods can be used:
      
         SetTime()/GetTime() - only time (hour:min:sec),
         SetDate()/GetDate() - only date (year-month-day),
         SetDatime()/GetDatime() - date and time
         SetTimestamp()/GetTimestamp() - timestamp with seconds fraction
         For some of these methods TDatime type can be used as parameter / return value.
         Be aware, that TDatime supports only dates after 1995-01-01.
         There are also methods to get separately year, month, day, hour, minutes and seconds.
      
      2. Support of binary data in TSQLStatement
          Most of modern data bases support just binary data, which is
          typically has SQL type name 'BLOB'. To access data in such
          columns, GetBinary()/SetBinary() methods should be used.
          Current implementation supposes, that complete content of the
          column must be retrieved at once. Therefore very big data of
          gigabytes size may cause a problem.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@16204 27541ba8-7e3a-0410-8455-c3a389f83636
      8aa8bb83
  12. Jun 25, 2006
    • Rene Brun's avatar
      From Sergey Linev: · df45bc1d
      Rene Brun authored
      1. Support for MySQL version 3.2.x and 4.0 enabled again. For that old MySQL versions TSQLStatement is not supported.
      2. Small fix in TSQLFile. With old MySQL versions it does not try to use TSQLStatement class.
      3. Enabling/disabling error output for TSQLStatement class.
      4. Fix in error handling in TMySQLServer::Statement() method. Previousely error code was not correctly stored.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@15538 27541ba8-7e3a-0410-8455-c3a389f83636
      df45bc1d
  13. Jun 22, 2006
  14. Jun 02, 2006
    • Rene Brun's avatar
      From Sergey Linev: · 77c8ce3a
      Rene Brun authored
      1. New methods of TSQLServer class (also for Oracle, MySQL, ODBC):
           Exec() - execute query which does not produce any result
           GetTablesList() - return list of tables names in data-base independent form
           IsTableExists() - check if table of given name exists
           GetTableInfo() - returns instance of TSQLTableInfo with list of columns.
      2. New methods of TSQLStatement class (also for Oracle, MySQL, ODBC):
           IsNull() - checks, if field value is NULL
           SetNull() - sets parameter value to NULL
      
      
      New TSQLTableInfo contains information about table and table columns.
      For MySQL additional information like engine type, creation and last update time is provided
      
      
      New TSQLColumnInfo class contains information about single column from SQL table
      Has following methods:
         GetTypeName() - field type name in string form as it is reported by correspondent
                database method. Some databases providing full type name like "numeric(20)",
                other showing only "NUMERIC". As a result, one cannot use this string directly
                to create new field of similar types in other table
         IsNullable() - says if field value can be NULL or not
         GetSQLType() - returns kind of sql type. Possible values:
            TSQLServer::kSQL_NONE        data type unknown
            TSQLServer::kSQL_CHAR        CHAR(n) - string with fixed length n
            TSQLServer::kSQL_VARCHAR     VARCHAR(n) - string with variable length upto n
            TSQLServer::kSQL_INTEGER     INTEGER, INT, TINYINT - any integer types
            TSQLServer::kSQL_FLOAT       FLOAT - float value
            TSQLServer::kSQL_DOUBLE      DOUBLE - double precision value
            TSQLServer::kSQL_NUMERIC     NUMERIC(n,s), NUMBER(n,s) - numeric values with length and precion
            TSQLServer::kSQL_BINARY      BLOB, VARBINARY  - binary data (vriable or fixed size)
            TSQLServer::kSQL_TIMESTAMP   TIMESTAMP - time and date stamp
         GetSize() - size of field in database. -1 if not known.
         GetLength() - length argument in type declaration like CHAR(len) or NUMERIC(len), -1 if not defined
         GetScale() - second argument in declarations like NUMERIC(len, s), -1 if not defined
         GetSigned() - is type signed(==1) or unsigned(==0), -1 if not defined
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@15305 27541ba8-7e3a-0410-8455-c3a389f83636
      77c8ce3a
  15. May 22, 2006
    • Rene Brun's avatar
      From Sergei Linev: · 2e9223ad
      Rene Brun authored
      1. Error handling is introduced. Now TSQLServer/TSQLStatement returns error code - GetErrorCode()
         and message - GetErrorMsg() of last operation.
         If desired, error output can be suppressed for TSQLServer. Correspondent changes done in implementation
         for Oracle, MySQL, ODBC
      2. New methods of TSQLServer class for transactions control: StartTransaction() / Commit() / Rollback().
         As desfault implmenetaion in TSQLServer class they corresopnd to SQL "START TRANSACTION", "COMMIT", "ROLLBACK" queries.
         For Oracle, MySQL and ODBC specific implmentaion were done while there special methods should be called.
      3. Some other new methods of TSQLServer class:
           IsSupportStatement() - return kTRUE if plugin has TSQLStatement implementation
           GetMaxIdentifierLength() - return maximum allowed length of identifiers
      4. Bugfix in TODBCRow class
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@15124 27541ba8-7e3a-0410-8455-c3a389f83636
      2e9223ad
  16. May 16, 2006
  17. Apr 12, 2006
  18. Mar 18, 2006
    • Fons Rademakers's avatar
      From Axel: · 48cd001d
      Fons Rademakers authored
      Dictionary G__%.o: G__%.cxx rules now in main Makefile instead of Module.mk's
      => changes in Module.mk.
      
      First Module.mk's included, then Makefile.precomp - we need ALLHDRS defined
      
      Split $(PCHEXTRAOBJ) and $(PCHFILE) rules - fixes clash with make -j2
      
      Define CINTCXXFLAGS:= - otherwise they will contain PCHCXXFLAGS via
      their definition as a copy of CXXFLAGS.
      
      MSVC: prevent LNK4206 linker warning (-Yl...)
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@14301 27541ba8-7e3a-0410-8455-c3a389f83636
      48cd001d
  19. Feb 07, 2006
    • Philippe Canal's avatar
      From Sergei Linev: · 6dc9f734
      Philippe Canal authored
      Main performance improvement are these two lines.
      
         fStmt->setPrefetchRowCount(1000);
         fStmt->setPrefetchMemorySize(1000000);
      
      It increases default buffers, which are about 8K and read much faster.
      For my example it runs 3 times faster, for other application it can be 4-5 times.
      
      Second patch is required for treatement of integers out of normal integer range (long long or unsigned int).
      I replace string -> int -> string conversion by just copying string to buffer. For the floats it is not working,
      while Oracle text format differs from C++ format.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@14002 27541ba8-7e3a-0410-8455-c3a389f83636
      6dc9f734
  20. Feb 01, 2006
  21. Dec 10, 2005
    • Fons Rademakers's avatar
      From Axel: · 0ab88198
      Fons Rademakers authored
      handle in a consistent way the new rootcint options -cint (default),
      -reflex and -gccxml. The type of dictionary to be used can be specified
      like: ./configure --with-dicttype=reflex. Notice that this option is
      there only for the developers working on the migration to the new
      dictionary system.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@13609 27541ba8-7e3a-0410-8455-c3a389f83636
      0ab88198
  22. Dec 09, 2005
    • Fons Rademakers's avatar
      From Axel: · f4578298
      Fons Rademakers authored
      in case we have gmake >= 3.80 we can use the new | (order) syntax where
      all dependencies after the | are required to be there but not trigger
      execution of the rule. This should greatly enhance the build experience
      on Win32 and AIX (platforms that need the EXPLICITLINK option).
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@13584 27541ba8-7e3a-0410-8455-c3a389f83636
      f4578298
  23. Jun 01, 2005
  24. Apr 25, 2005
  25. Apr 11, 2005
  26. Mar 03, 2005
    • Fons Rademakers's avatar
      some cosmetics. · 16826865
      Fons Rademakers authored
      git-svn-id: http://root.cern.ch/svn/root/trunk@11218 27541ba8-7e3a-0410-8455-c3a389f83636
      16826865
    • Rene Brun's avatar
      From Yan Liu: · 3638a827
      Rene Brun authored
      1. implemented TOracleServer::GetColumns() using occi
      MetaData instead of original SQL select statement. This
      implementation works for any Oracle 10 databases without
      constraints on user granted priveleges.
      
      2. implemented TOracleServer::GetTables(). The TSQLServer::GetTables()
      is MySQL oriented. In Oracle, table is accessed in "schema.table" format.
      The implementation handles two cases: with and without schema name.
      The return value conforms TSQL spec, i.e. a TSQLResult pointer.
      
      3. fixed a critical bug in TOracleResult::Next().
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@11214 27541ba8-7e3a-0410-8455-c3a389f83636
      3638a827
  27. Feb 28, 2005
    • Fons Rademakers's avatar
      From Yan Liu and Shaowen Wang: · a2b38dd4
      Fons Rademakers authored
      This is the first version of the new oracle plugin.
      To build this plugin one needs to install the following
      Oracle InstantClient rpms:
         oracle-instantclient-basic-10.1.0.3-1
         oracle-instantclient-devel-10.1.0.3-1
      And the following environment variables in your .[bash_]profile:
         export ORACLEINCDIR=/usr/include/oracle/10.1.0.3/client
         export ORACLELIBDIR=/usr/lib/oracle/10.1.0.3/client/lib
         export LD_LIBRARY_PATH=$ORACLELIBDIR:$LD_LIBRARY_PATH
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@11203 27541ba8-7e3a-0410-8455-c3a389f83636
      a2b38dd4
Loading