Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Date: Jun 7 1999 6:28PM
Louis Proyect writes:
> I am somewhat puzzled by something. I execute "sql" in the following
> @res = $dbh->sql("select count(*) from ALL_TRANS");
> Is this the same sql that is found in sql.pl, the script which comes with a
> standard sybase installation? The reason I am confused is that in the past
> I had to invoke it with a require statement, but now that I am using the
> "Use Sybase::DBLib" statement, the require is omitted. Does Perl find the
> script without a require statement? Or is the "sql" being invoked something
> different from the good old sql.pl that I am used to.
This is a different sql() call. The one that is called with a require
is the one that is compatible with the sql() from sybperl 1.x. This
one (the one in Sybase::DBlib) returns references to rows, instead of
joining each row together with the ~ character.
Michael Peppler -||- Data Migrations Inc.
firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: email@example.com