php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6097 missing #defines SQLINTEGER and SQLUSMALLINT in Adabas D 10
Submitted: 2000-08-10 23:58 UTC Modified: 2000-10-30 13:01 UTC
From: tobi at web-arts dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: Linux 2.2.13
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tobi at web-arts dot de
New email:
PHP Version: OS:

 

 [2000-08-10 23:58 UTC] tobi at web-arts dot de
When I enable Adabas D support and compule php4.01pl2 with Adabas D 10, I get an error message in
php_odbc.c saying that SQLINTEGER and SQLUSMALLINT are not defined.

I fixed this by completing the Adabas D specific part of the php_odbc.h:

#elif defined(HAVE_ADABAS) /* Adabas D */

#define ODBC_TYPE "Adabas D"
#include <WINDOWS.H>
#include <sql.h>
#include <sqlext.h>
#define HAVE_SQL_EXTENDED_FETCH 1
#define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
#define SQLINTEGER ULONG
#define SQLUSMALLINT USHORT


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 13:01 UTC] derick@php.net
Changed in CVS, could you try the latest cvs version, and see if it works for you?
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 07:00:01 2026 UTC