freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Dan Fleisher" <danielfl AT seas.upenn.edu>
- To: freetds
- Subject: DBD::FreeTDS and Digital Unix 4.0
- Date: Thu, 27 May 1999 17:6:59
Hi, I'm trying to use DBD::FreeTDS to connect to a MS SQL Server 6.5 from a
Digital Unix 4.0 box. I compiled the module and installed it with no
problems, but when I run a simple test script it bombs with this error:
oncodev.isc-net.upenn.edu> testsql
Unaligned access pid=5358 <testsql> va=0x14010ad26 pc=0x3000000a5d4
ra=0x3000000a5c8 inst=0xb4200000
Unaligned access pid=5358 <testsql> va=0x14010ad2e pc=0x3000000a5e0
ra=0x3000000a5e0 inst=0xb5400008
Unaligned access pid=5358 <testsql> va=0x14010ad36 pc=0x3000000a608
ra=0x3000000a5f0 inst=0xb4200010
(lots more lines of this..)
Assertion failed: sizeof(long)==4, file tdslayer.c, line 1640
IOT trap
Here is the script:
oncodev.isc-net.upenn.edu> uname -a
OSF1 oncodev.isc-net.upenn.edu V4.0 878 alpha
oncodev.isc-net.upenn.edu> cat testsql
#!/usr/local/bin/perl
use DBI;
$dsn = "DBI:FreeTDS:database=blah;host=blah";
$user = "sa";
$pass = "";
$dbh = DBI->connect($dsn, $user, $pass);
if ( !defined $dbh ) {
die "Cannot do \$dbh->connect: $DBI::errstr\n";
}
$cursor = $dbh->prepare("SELECT * FROM blah");
$cursor->execute;
while (@row = $cursor->fetchrow_array) {
print "$row[0]\t$row[1]\n\n";
}
(end script)
I know in the KNOWN_BUGS section it says FreeTDS won't work where
non-aligned writes aren't allowed, so I figure that is the problem, but I'm
hoping someone else maybe has a solution or a way around this. Thanks.
- Dan
- DBD::FreeTDS and Digital Unix 4.0, Dan Fleisher, 01/29/2024
Archive powered by MHonArc 2.6.24.