[Ocipl-commits] SF.net SVN: ocipl: [50] trunk/ocipl/ocipl.h
Brought to you by:
martinfuchs
|
From: <mar...@us...> - 2008-05-30 09:16:19
|
Revision: 50
http://ocipl.svn.sourceforge.net/ocipl/?rev=50&view=rev
Author: martinfuchs
Date: 2008-05-30 02:16:27 -0700 (Fri, 30 May 2008)
Log Message:
-----------
- new BindPar variants for char and float variables
- new function OciLogin::connected()
Modified Paths:
--------------
trunk/ocipl/ocipl.h
Modified: trunk/ocipl/ocipl.h
===================================================================
--- trunk/ocipl/ocipl.h 2008-05-30 08:25:42 UTC (rev 49)
+++ trunk/ocipl/ocipl.h 2008-05-30 09:16:27 UTC (rev 50)
@@ -773,6 +773,11 @@
}
}
+ bool connected() const
+ {
+ return _connected;
+ }
+
void commit(ub4 flags=OCI_DEFAULT)
{
sword res = OCITransCommit(_handle, _env._errh, flags);
@@ -1942,6 +1947,22 @@
indp = ind;
}
+ BindPar(const char& var, OCIInd* ind=NULL)
+ {
+ valuep = (void*)&var;
+ value_sz= sizeof(char);
+ dty = SQLT_CHR;
+ indp = ind;
+ }
+
+ BindPar(const float& var, OCIInd* ind=NULL)
+ {
+ valuep = (void*)&var;
+ value_sz= sizeof(float);
+ dty = SQLT_FLT;
+ indp = ind;
+ }
+
BindPar(const double& var, OCIInd* ind=NULL)
{
valuep = (void*)&var;
@@ -2788,6 +2809,7 @@
#endif
};
+ int _size;
ub2 _data_type;
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|