Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

[svn:dbd-oracle] r2321 - dbd-oracle/branches/pythian
Author: timbo
Date: Wed Dec 21 09:51:08 2005
New Revision: 2321

Modified:
dbd-oracle/branches/pythian/Changes
dbd-oracle/branches/pythian/Makefile.PL
dbd-oracle/branches/pythian/dbdimp.c
dbd-oracle/branches/pythian/oci8.c
Log:
Added support for binary floats/doubles thanks to Dennis Box.


Modified: dbd-oracle/branches/pythian/Changes
 ====================
 ====================
 ====================
================
==
--- dbd-oracle/branches/pythian/Changes	(original)
+++ dbd-oracle/branches/pythian/Changes	Wed Dec 21 09:51:08 2005
@@ -6,8 +6,9 @@

Added support for nested cursors in select lists thanks to Charles Jardine.
Added "Trailing Spaces" section to docs thanks to Michael A Chase.
-  Changed "Binding Cursors" docs, clarifying examples thanks to Charles Jar
dine.
+  Added support for binary floats/doubles thanks to Dennis Box.

+  Changed "Binding Cursors" docs, clarifying examples thanks to Charles Jar
dine.
Changed Makefile.PL to avoid risk of sqlplus hanging thanks to Mark Dedlow.
Changed Makefile.PL to prefer ~/rdbms/public over other ~/rdbms/* for .h fil
es.
Changed Makefile.PL to improve build rule detection.
@@ -16,6 +17,7 @@
Updated README.vms re logical name tables thanks to Jakob Snoer.
Updated README.aix thanks to Stephen de Vries.
Updated README.macosx thanks to Stephen de Vries.
+  Renamed README.*'s to add .txt suffix to make life easier for some.

The Copyright terms for DBD::Oracle have been simplified and now read:
The DBD::Oracle module is free software; you can redistribute it

Modified: dbd-oracle/branches/pythian/Makefile.PL
 ====================
 ====================
 ====================
================
==
--- dbd-oracle/branches/pythian/Makefile.PL	(original)
+++ dbd-oracle/branches/pythian/Makefile.PL	Wed Dec 21 09:51:08 2005
@@ -1448,8 +1448,8 @@ sub get_client_version {
close FH;
my $sqlplus_release = `$sqlplus_exe -S /nolog \@define.sql 2>&1`;
unlink "define.sql";
-	print $sqlplus_release;
-	if ($sqlplus_release =~ /^DEFINE _SQLPLUS_RELEASE = "(\d?\d)(\d\d)(\d\d)(\
d\d)(\d\d)"/) {
+	print $sqlplus_release; # the _SQLPLUS_RELEASE may not be on first line:
+	if ($sqlplus_release =~ /DEFINE _SQLPLUS_RELEASE = "(\d?\d)(\d\d)(\d\d)(\d
\d)(\d\d)"/) {
 $client_version_full
 = sprintf("%d.%d.%d.%d", $1, $2, $3, $4);
}
}

Modified: dbd-oracle/branches/pythian/dbdimp.c
 ====================
 ====================
 ====================
================
==
--- dbd-oracle/branches/pythian/dbdimp.c	(original)
+++ dbd-oracle/branches/pythian/dbdimp.c	Wed Dec 21 09:51:08 2005
@@ -164,10 +164,14 @@ oratype_bind_ok(int dbtype) /* It's a ty
case  2:	/* NVARCHAR2	*/
case  5:	/* STRING	*/
case  8:	/* LONG		*/
+    case 21:	/* BINARY FLOAT os-endian */
+    case 22:	/* BINARY DOUBLE os-endian */
case 23:	/* RAW		*/
case 24:	/* LONG RAW	*/
case 96:	/* CHAR		*/
case 97:	/* CHARZ	*/
+    case 100:	/* BINARY FLOAT oracle-endian */
+    case 101:	/* BINARY DOUBLE oracle-endian */
case 106:	/* MLSLABEL	*/
case 102:	/* SQLT_CUR	OCI 7 cursor variable	*/
case 112:	/* SQLT_CLOB / long	*/
@@ -2120,6 +2124,15 @@  ora2sql_type(imp_fbh
_t* fbh) {
sql_fbh.dbtype = SQL_DECIMAL; /* better: SQL_NUMERIC */
}
break;
+#ifdef SQLT_IBDOUBLE
+    case SQLT_BDOUBLE:
+    case SQLT_BFLOAT:
+    case SQLT_IBDOUBLE:
+    case SQLT_IBFLOAT:
+               sql_fbh.dbtype = SQL_DOUBLE;
+               sql_fbh.prec   = 126;
+               break;
+#endif
case SQLT_CHR:  sql_fbh.dbtype = SQL_VARCHAR;       break;
case SQLT_LNG:  sql_fbh.dbtype = SQL_LONGVARCHAR;   break; /* long */
case SQLT_DAT:  sql_fbh.dbtype =  SQL_TYPE_TIMESTAMP;b
reak;

Modified: dbd-oracle/branches/pythian/oci8.c
 ====================
 ====================
 ====================
================
==
--- dbd-oracle/branches/pythian/oci8.c	(original)
+++ dbd-oracle/branches/pythian/oci8.c	Wed Dec 21 09:51:08 2005
@@ -1233,8 +1233,12 @@ dbd_describe(SV *h, imp_sth_t *imp_sth)
break;

case   2:				/* NUMBER	*/
+	case  21:				/* BINARY FLOAT os-endian	*/
+	case  22:				/* BINARY DOUBLE os-endian	*/
+	case 100:				/* BINARY FLOAT oracle-endian	*/
+	case 101:				/* BINARY DOUBLE oracle-endian	*/
fbh->disize = 130+38+3;		/* worst case	*/
-		avg_width = 4;     /* > approx +/- 1_000_000 ?  */
+		avg_width = 4;     /* NUMBER approx +/- 1_000_000 */
break;

case  12:				/* DATE		*/

Report this thread to moderator Post Follow-up to this message
Old Post
timbo@cvs.perl.org
12-21-05 06:24 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Oracle PERL DBD archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 03:58 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006