On Tue, 4 Jul 2006 09:23:45 -0400 (EDT), "Guest via RT"
<bug-DBD-Unify@rt.cpan.org> wrote:
Show quoted text> I have attached my little test perl program with it's trace output.
> Apart from the database returning a -59 error on connect, everything
> else appears to be OK.
>
> I have also written a little E/SQL program as you suggested, and it
> works correctly, (I have attached this as well "aok.ec").
How 'bout this:
--8<---
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <include/rhlierr.h>
int main (int argc, char *argv[])
{
USTATUS status;
(void)fprintf (stderr, "DBPATH = '%s'\n", getenv ("DBPATH"));
EXEC SQL
CONNECT;
(void)fprintf (stderr, "After connect, sqlcode = %d\n", SQLCODE);
/* Problem number 22960: 2nd Connect to same database fails */
if (SQLCODE == -254) SQLCODE = UENORM;
if (SQLCODE == UENORM)
printf ("Connected to database\n");
else
printf ("(%d) %s\n", SQLCODE, ufchmsg (SQLCODE, &status));
return (0);
} /* main */
-->8---
That is the smallest and closest to what I can get to the real code
Is $DBPATH set? is it set to where file.db resides?
Show quoted text> Could this be caused by me using gcc instead of the IBM compiler for
> perl and DBD::Unify ?
Unlikely I think.
--
H.Merijn Brand Amsterdam Perl Mongers (
http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.9.x on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.0, AIX 4.3 & 5.2, and Cygwin.
http://qa.perl.org
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org
http://www.goldmark.org/jeff/stupid-disclaimers/