Hello!


We rewrote some SQL related functions,
and haven't a chance to compile with Oracle.
All other databases are tested.

The patch in attachement should fix these
warnings and errors.

Please give feedback.


Roman Putyatin wrote:
> 
> Alexander Barkov wrote:
> >
> >
> >   Hello!
> >
> > mnoGoSearch-3.2.0 release is available from our site
> > http://www.mnogosearch.org/
> >
> 
> sparc/solaris 2.6:
> 
> bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../include -I../include
> -I/export/app/oracle8.0.5/rdbms/demo/
> -I/export/app/oracle8.0.5/rdbms/public/
> -I/export/app/oracle8.0.5/network/public/
> -I/export/app/oracle8.0.5/plsql/public/       -g -O2
> -DUDM_CONF_DIR=\"/usr/local/apps/mnogosearch-320r/etc\"
> -DUDM_VAR_DIR=\"/usr/local/apps/mnogosearch-320r/var\" -c sql.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I/export/app/oracle8.0.5/rdbms/demo/
> -I/export/app/oracle8.0.5/rdbms/public/
> -I/export/app/oracle8.0.5/network/public/
> -I/export/app/oracle8.0.5/plsql/public/ -g -O2
> -DUDM_CONF_DIR=\"/usr/local/apps/mnogosearch-320r/etc\"
> -DUDM_VAR_DIR=\"/usr/local/apps/mnogosearch-320r/var\" -c sql.c -o sql.o
> sql.c: In function `UdmSQLQuery':
> sql.c:2566: warning: passing arg 2 of `UdmOracle8Query' discards
> qualifiers from pointer target type
> sql.c:2568: `goro' undeclared (first use in this function)
> sql.c:2568: (Each undeclared identifier is reported only once
> sql.c:2568: for each function it appears in.)
> sql.c:2568: parse error before `ret'
> sql.c: In function `UdmSQLFree':
> sql.c:2701: `x' undeclared (first use in this function)
> make[1]: *** [sql.lo] Error 1
> make[1]: Leaving directory `/tmp/mnogosearch-3.2.0/src'
> make: *** [all-recursive] Error 1
>
--- sql.c.orig  Mon Sep 24 12:26:47 2001
+++ sql.c       Tue Sep 25 14:29:04 2001
@@ -1378,7 +1378,7 @@
        return (UDB_RES*)result;
 }
 
-static UDB_RES* UdmOracle8Query(DB * db, char *qbuf) {
+static UDB_RES* UdmOracle8Query(DB * db, const char *qbuf) {
        UDB_RES *res;
 
        if(!db->connected) {
@@ -2564,7 +2564,7 @@
        if(db->DBDriver==UDM_DB_ORACLE8){
                res=UdmOracle8Query(db,query);
                if(res)res->DBDriver=db->DBDriver;
-               goro ret;
+               goto ret;
        }
 #endif
 
@@ -2689,7 +2689,7 @@
 
 #if HAVE_ORACLE7
        if(res->DBDriver==UDM_DB_ORACLE7){
-               oci_free_result(x)
+               oci_free_result(res)
                free(res);
                return;
        }
@@ -2697,7 +2697,7 @@
 
 #if HAVE_ORACLE8
        if(res->DBDriver==UDM_DB_ORACLE8){
-               oci_free_result(x);
+               oci_free_result(res);
                free(res);
                return;
        }

Reply via email to