Subject | error using DPB |
---|---|
Author | Francesco Lamonica |
Post date | 2003-09-13T23:37:19Z |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
there's a problem in the following code
int
FBWrapper::attach()
{
char *str="testdb.gdb"
char dpb_buffer[256], *dpb;
char uname[256]="sysdba",passwd[256]="masterkey";
short dpb_length;
dpb=dpb_buffer;
*dpb++=isc_dpb_version1;
dpb_length=dpb-dpb_buffer;
dpb=dpb_buffer;
isc_expand_dpb(&dpb,&dpb_length,isc_dpb_user_name,uname,isc_dpb_password,passwd,NULL);
isc_attach_database(status_vector,strlen(str),str,&dbh,dpb_length,dpb_buffer);
return check4errors();
}
as i get the following error:
SQL error
SQLCODE: -901
SQL ERROR:
Unsuccessful execution caused by system error that does not preclude
successful execution of subsequent statements
ISC STATUS:
unrecognized database parameter block
what am i doing wrong??
I am using FB-CS 1.0.3 on Linux
thanks a lot
- --
Francesco Lamonica: f DOT lamonica AT tin DOT it
PGP Fingerprint: 5870 92BA 8DFF 1ACF DE2E B94D 46EC 5505 7C64 4EF1
Favourite quote: There's no spoon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/Y6oyRuxVBXxkTvERAv5fAKD3MTgvw2U8HX/xcyE6+bnsSTaK4QCfRKx+
RbIMn9QPZqv47CSmjpolYYc=
=qCAM
-----END PGP SIGNATURE-----
Hash: SHA1
there's a problem in the following code
int
FBWrapper::attach()
{
char *str="testdb.gdb"
char dpb_buffer[256], *dpb;
char uname[256]="sysdba",passwd[256]="masterkey";
short dpb_length;
dpb=dpb_buffer;
*dpb++=isc_dpb_version1;
dpb_length=dpb-dpb_buffer;
dpb=dpb_buffer;
isc_expand_dpb(&dpb,&dpb_length,isc_dpb_user_name,uname,isc_dpb_password,passwd,NULL);
isc_attach_database(status_vector,strlen(str),str,&dbh,dpb_length,dpb_buffer);
return check4errors();
}
as i get the following error:
SQL error
SQLCODE: -901
SQL ERROR:
Unsuccessful execution caused by system error that does not preclude
successful execution of subsequent statements
ISC STATUS:
unrecognized database parameter block
what am i doing wrong??
I am using FB-CS 1.0.3 on Linux
thanks a lot
- --
Francesco Lamonica: f DOT lamonica AT tin DOT it
PGP Fingerprint: 5870 92BA 8DFF 1ACF DE2E B94D 46EC 5505 7C64 4EF1
Favourite quote: There's no spoon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/Y6oyRuxVBXxkTvERAv5fAKD3MTgvw2U8HX/xcyE6+bnsSTaK4QCfRKx+
RbIMn9QPZqv47CSmjpolYYc=
=qCAM
-----END PGP SIGNATURE-----