Stephen Carville wrote:
On Tuesday 27 January 2009 07:21, Martin Evans wrote:

Does anyone know of a way to get numbers (as I've described) back from
DBD::Oracle.

If you know the data is integer try:
while($s->fetch) {
    push @data, int($num);
etc()
  }


I do know it is an integer but so does DBD::Oracle and Oracle. I was hoping to avoid doing int($x) or $x+0 or $x*1 etc etc everywhere I had an integer, especially since a lot of the code uses fetchall_arrayref which means looping though all rows and integer columns changing them or changing the code to loop on fetch. I guess I don't see why a known integer cannot look like an integer once retrieved without me manually changing it.

If any other DBDs do something special for integers please let me know as I'm thinking of looking at this for DBD::ODBC too.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

Reply via email to