ROOT logo
// @(#)root/odbc:$Id$
// Author: Sergey Linev   6/02/2006

/*************************************************************************
 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TODBCResult
#define ROOT_TODBCResult

#ifndef ROOT_TSQLResult
#include "TSQLResult.h"
#endif

#ifndef ROOT_TString
#include "TString.h"
#endif


#ifdef __CINT__
typedef void * SQLHSTMT;
#else
#ifdef WIN32
#include "windows.h"
#endif
#include <sql.h>
#endif


class TODBCResult : public TSQLResult {

protected:
   SQLHSTMT    fHstmt;
   Int_t       fFieldCount;
   TString     fNameBuffer;

public:
   TODBCResult(SQLHSTMT stmt);
   virtual ~TODBCResult();

   void        Close(Option_t *opt="");
   Int_t       GetFieldCount() { return fFieldCount; }
   const char *GetFieldName(Int_t field);
   TSQLRow    *Next();

   ClassDef(TODBCResult,0)  // ODBC query result
};

#endif
 TODBCResult.h:1
 TODBCResult.h:2
 TODBCResult.h:3
 TODBCResult.h:4
 TODBCResult.h:5
 TODBCResult.h:6
 TODBCResult.h:7
 TODBCResult.h:8
 TODBCResult.h:9
 TODBCResult.h:10
 TODBCResult.h:11
 TODBCResult.h:12
 TODBCResult.h:13
 TODBCResult.h:14
 TODBCResult.h:15
 TODBCResult.h:16
 TODBCResult.h:17
 TODBCResult.h:18
 TODBCResult.h:19
 TODBCResult.h:20
 TODBCResult.h:21
 TODBCResult.h:22
 TODBCResult.h:23
 TODBCResult.h:24
 TODBCResult.h:25
 TODBCResult.h:26
 TODBCResult.h:27
 TODBCResult.h:28
 TODBCResult.h:29
 TODBCResult.h:30
 TODBCResult.h:31
 TODBCResult.h:32
 TODBCResult.h:33
 TODBCResult.h:34
 TODBCResult.h:35
 TODBCResult.h:36
 TODBCResult.h:37
 TODBCResult.h:38
 TODBCResult.h:39
 TODBCResult.h:40
 TODBCResult.h:41
 TODBCResult.h:42
 TODBCResult.h:43
 TODBCResult.h:44
 TODBCResult.h:45
 TODBCResult.h:46
 TODBCResult.h:47
 TODBCResult.h:48
 TODBCResult.h:49
 TODBCResult.h:50
 TODBCResult.h:51
 TODBCResult.h:52
 TODBCResult.h:53