#23541 [NEW]: Support for picoSQL database

From: Date: Thu, 08 May 2003 08:01:18 +0000
Subject: #23541 [NEW]: Support for picoSQL database
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39286@lists.php.net to get a copy of this message
From:             marco at picosoft dot it
Operating system: all
PHP version:      4.3.1
PHP Bug Type:     ODBC related
Bug description:  Support for picoSQL database

I would like to propose the picoSQL db support in PHP.
picoSQL supports the ODBC APIs, so you need to change only
the following two files (you can get further informations
at www.picosoft.it/picosql or you can email me):

--- php-4.3.1/ext/odbc/php_odbc_includes.h      Wed Jul 31 15:51:20 2002
+++ php-4.3.1/ext/odbc/php_odbc_includes.h.new  Wed Apr 30 17:04:45 2003
@@ -179,6 +179,12 @@
 #include <LibraryManager.h>
 #endif

+#elif defined(HAVE_PICOSQL) /* PICOSQL */
+#define ODBC_TYPE "picoSQL"
+#define HAVE_SQL_EXTENDED_FETCH 1
+#include <odbcsql.h>
+# define SQL_MAX_MESSAGE_LENGTH 512
+
 #else /* MS ODBC */

 #define HAVE_SQL_EXTENDED_FETCH 1


--- php-4.3.1/ext/odbc/config.m4        Tue Nov 12 18:31:39 2002
+++ php-4.3.1/ext/odbc/config.m4.new    Wed Apr 30 16:50:00 2003
@@ -534,6 +534,36 @@
 ])
 fi

+if test -z "$ODBC_TYPE"; then
+AC_MSG_CHECKING(for picoSQL support)
+AC_ARG_WITH(picoSQL,
+[  --with-picoSQL[=DIR]   Include picoSQL support.  DIR is the
+                          picoSQL base install directory, defaults to
+                          /usr/local.],
+[
+  PHP_WITH_SHARED
+  if test "$withval" = "yes"; then
+    withval=/usr/local
+  fi
+  if test "$withval" != "no"; then
+    PHP_ADD_LIBRARY_WITH_PATH(picocpp, $withval/lib)
+    PHP_ADD_LIBRARY_WITH_PATH(picoiiop, $withval/lib)
+    PHP_ADD_LIBRARY_WITH_PATH(picosqlnet, $withval/lib)
+    PHP_ADD_INCLUDE($withval/inc, 1)
+    ODBC_TYPE=picoSQL
+    ODBC_INCLUDE=-I$withval/inc
+    ODBC_LFLAGS=-L$withval/lib
+    ODBC_LIBS=-lpicosqlnet -lpicoiiop -lpicocpp
+    AC_DEFINE(HAVE_PICOSQL,1,[ ])
+    AC_MSG_RESULT(yes)
+  else
+    AC_MSG_RESULT(no)
+  fi
+],[
+  AC_MSG_RESULT(no)
+])
+fi
+
 if test -n "$ODBC_TYPE"; then
   if test "$ODBC_TYPE" != "dbmaker"; then
     if test "$shared" != "yes"; then
-- 
Edit bug report at http://bugs.php.net/?id=23541&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23541&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23541&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23541&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23541&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23541&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23541&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23541&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23541&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23541&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23541&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23541&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23541&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23541&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23541&r=gnused



Thread (4 messages)

« previous php.bugs (#39286) next »