MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: odbc vs jdbc for database access in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38219] Re: odbc vs jdbc for database access in Mathematica
  • From: alexander.vorobiev at usa.net (Alexander Vorobiev)
  • Date: Thu, 5 Dec 2002 03:33:02 -0500 (EST)
  • References: <ashveh$em5$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Todd,

The getRow method needed a small fix:

///
for (int i = 1; i <= types.length; i++) {
              switch (types[i - 1]) {
///

because Java array indices start with 0 whrereas column inidices in 
ResultSet start with 1. Other than that this simple class made a huge 
difference - queries that used to take minutes to complete now take 
less than a minute! My mistake was I was too reluctant to write any 
Java code ;)

Thanks a lot!
Alexander


  • Prev by Date: Re: Mathematica Documentation
  • Next by Date: Re: Inverse NxM matrices
  • Previous by thread: Re: odbc vs jdbc for database access in Mathematica
  • Next by thread: mathematica logo