[root] / trunk / sql / mysql / src / TMySQLServer.cxx Repository:
ViewVC logotype

Log of /trunk/sql/mysql/src/TMySQLServer.cxx

Parent Directory Parent Directory


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

Revision 30522 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 29 08:37:38 2009 UTC (5 years, 3 months ago) by brun
File length: 26169 byte(s)
Diff to previous 30501
Fix coding conventions

Revision 30501 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 28 10:56:29 2009 UTC (5 years, 3 months ago) by brun
File length: 26241 byte(s)
Diff to previous 26487
From Sergey Linev:
small add on for TMySQLServer constructor to solve a problem with automatic reconnect.
One is also able to specify custom config file, where many other mysql options can be redefined.

Revision 26487 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 26 16:52:50 2008 UTC (6 years, 1 month ago) by rdm
File length: 24411 byte(s)
Diff to previous 26485
fix indentation and comments.

Revision 26485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 26 16:03:04 2008 UTC (6 years, 1 month ago) by brun
File length: 24411 byte(s)
Diff to previous 25637
From Chiara Zampolli
Implement "ping" function in abstract interface and real implemenattion for Mysql

Revision 25637 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 1 09:49:57 2008 UTC (6 years, 3 months ago) by brun
File length: 23475 byte(s)
Diff to previous 23469
From Sergei Linev:
1. Support of MEDIUMBLOB and LONGBLOB binary types in TMySQLStatement
2. Support of read_timeout and write_timeout parameters in TMySQLServer connect string.
   Read/write timeout only works on Windows or with newest version of MySQL.

Revision 23469 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 14:08:54 2008 UTC (6 years, 9 months ago) by brun
File length: 22253 byte(s)
Diff to previous 23123
Fix a shadowed variable

Revision 23123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 15:18:52 2008 UTC (6 years, 9 months ago) by rdm
File length: 22262 byte(s)
Diff to previous 22488
move the following directories to "sql":

mysql, odbc, oracle, pgsql, sapdb

Revision 22488 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 6 16:04:47 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 22262 byte(s)
Diff to previous 20882
remove first batch of warning reported by gcc 4.3:
- warning: suggest parentheses around && within ||
- warning: suggest explicit braces to avoid ambiguous if else

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/mysql/src/TMySQLServer.cxx
File length: 22252 byte(s)
Diff to previous 19826
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 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/mysql/src/TMySQLServer.cxx
File length: 22252 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/mysql/src/TMySQLServer.cxx
File length: 22306 byte(s)
Diff to previous 18954
remove :$ from tag line

Revision 18954 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 6 09:52:00 2007 UTC (7 years, 7 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 22316 byte(s)
Diff to previous 16863
- add more detailed comment on how to connect to a MySQL DB
- change method IsSupportStatement() to HasStatement()

Revision 16863 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 22 10:08:00 2006 UTC (8 years, 2 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 20714 byte(s)
Diff to previous 16517
fix compilation problem with MySQL 5.27.

Revision 16517 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 13 07:33:16 2006 UTC (8 years, 3 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 21054 byte(s)
Diff to previous 16384
From Sergey Linev:
1. Workaround for Oracle ODBC driver for Linux. Number of fetched rows is
not set,
   therefore one should calculate this number ourself.
2. TODBCServer::GetDrivers() and TODBCServer::GetDataSources() static
methods are implemented.
   They provide information about available configured ODBC drivers and data
sources respectively.
   Also PrintDrivers() and PrintDataSources() methods are implemented.
3. TODBCServer::ServerInfo() method is implemented. It nows returns server
name and version like:
     "Oracle 10.01.0030" or "MySQL 4.1.11"
   TMySQLServer::ServerInfo() modified to return info in form: "MySQL
4.1.11"
4. TODBCServer::GetTablesList() modified in respect of Oracle ODBC driver
functionality -
    wildcarding is now works correctly.

Revision 16384 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 13:58:34 2006 UTC (8 years, 3 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 20958 byte(s)
Diff to previous 16162
From Sergey Linev:
After getting mail from Antonio Bulgheroni [antonio.bulgheroni@gmail.com],
I found out that MySQL and Oracle default ports number not used in ROOT.

Therefore, I made small fix to set default port number for MySQL = 3306 and Oracle = 1521.

Revision 16162 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 30 12:55:09 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 20904 byte(s)
Diff to previous 15815
From Sergey Linev:
1. Lightweight support of DATE, TIME, DATETIME and TIMESTAMP SQL types for mysql plugin.
Now stmt->GetString() and stmt->GetInt() calls return meaningfull infotmation for that types.
In the future I will add methods like stmt->GetDate() for all SQL plugins.

2. Fix error with reading of unsigned data types from MySQL.
I was ignoring this flag, therefore methods like GetUInt(), GetULong() were not working
properly.

3. Support of TEXT/BLOB types in TMySQLStatement.
There are several small changes, which allows to read BLOB/TEXT data with TSQLStatement methods.
I also modify TMySQLServer::GetTableInfo() method to provide correct metainformation about
BLOB/TEXT columns.

Revision 15815 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 17 12:36:49 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 21007 byte(s)
Diff to previous 15767
From Sergey:
I have used "errno" name for variable, which is used in <errno.h> include.
Problem appears in MaxOS. In fix I just rename "errno" to "sqlerrno".

Revision 15767 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 11 10:34:23 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 20983 byte(s)
Diff to previous 15750
Fix coding convention.

Revision 15750 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 10 11:05:50 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 20989 byte(s)
Diff to previous 15733
From Sergey Linev:
Following an error report from Diego Faso about MySQLServer::TableInfo.
Here a patch for the problem - I just exclude usage of TSQLStatement class.

Revision 15733 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 7 09:59:04 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 21052 byte(s)
Diff to previous 15625
From Sergey:
Now it possible to specify arguments for connection string like:

TSQLServer::Connect("mysql://host.domain/test?timeout=10&multi_statements")

Revision 15625 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 29 20:36:43 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 18717 byte(s)
Diff to previous 15538
From Sergey Linev:
Fix coding conventions violations

Revision 15538 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 25 18:43:24 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 18718 byte(s)
Diff to previous 15305
From Sergey Linev:
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.

Revision 15305 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 2 14:02:03 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 18002 byte(s)
Diff to previous 15124
From Sergey Linev:
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

Revision 15124 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 22 08:55:30 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 9960 byte(s)
Diff to previous 15063
From Sergei Linev:
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

Revision 15063 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 10:59:35 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 8358 byte(s)
Diff to previous 14675
From Sergei:
handle change TUrl::GetFile() convention, leading slash is not part of
filename anymore (to be URL standards compliant).

Revision 14675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 12 20:53:45 2006 UTC (8 years, 9 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 8350 byte(s)
Diff to previous 11140
From Sergei Linev:
Added TSQLStatment abstract class and TMySQLStatment and TOracleStatement
classes to support bulk DB operations. For more details see the description
in the TSQLStatement.cxx file.

Revision 11140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 17 14:35:37 2005 UTC (9 years, 11 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 7628 byte(s)
Diff to previous 10136
Fix mysql_shutdown() which changed API for versions >=50001 or
version<50000 and version>=40103 (a mess).

Revision 10136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 10:26:07 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 7561 byte(s)
Diff to previous 10127
It appears that the test on the MySQL version in TMySQLServer::Shutdown()
must be
#if MYSQL_VERSION_ID < 50001
and not
#if MYSQL_VERSION_ID < 40003

Revision 10127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 18:46:18 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 7561 byte(s)
Diff to previous 6457
From Robert Hatcher:
 TMySQLServer::ShutDown appears to need a modification to adapt to API changes in MySQL.

Revision 6457 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 16 16:47:22 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 7467 byte(s)
Diff to previous 5547
Changes by Volker Hejny to work with MySql4 and 3

Revision 5547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 5 17:01:38 2002 UTC (12 years, 2 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 7421 byte(s)
Diff to previous 2737
add more explicit error message in case connection to mysqld fails.

Revision 2737 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 24 16:34:18 2001 UTC (13 years, 5 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 7358 byte(s)
Diff to previous 3
some corrections in MySQL and PostgreSQL interfaces to make behaviour
compatible.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/mysql/src/TMySQLServer.cxx
File length: 7331 byte(s)
Copied from: branches/rdm/mysql/src/TMySQLServer.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/mysql/src/TMySQLServer.cxx
File length: 7331 byte(s)
Initial import of ROOT into CVS

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