[bug #47178] JDBC backend in SQLClient does not compile

Niels Grewe <[email protected]>
Newsgroups gmane.comp.lib.gnustep.bugs
Message-ID <[email protected]>
URL:
  <http://savannah.gnu.org/bugs/?47178>

                 Summary: JDBC backend in SQLClient does not compile
                 Project: GNUstep
            Submitted by: thebeing
            Submitted on: Mi 17 Feb 2016 13:48:14 GMT
                Category: Libraries
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The JDBC backend in SQLClient will not compile because it wasn't updated
properly after the inception of the SQLClientPool code:

 Compiling file JDBC.m ...
JDBC.m: In function '+[SQLClientJVM defaultClassPath]':
JDBC.m:251:3: warning: @interface of class 'NSDictionary' not found [enabled
by default]
   return [environment objectForKey: @"CLASSPATH"];
   ^
JDBC.m: In function '+[SQLClientJVM defaultLibraryPath]':
JDBC.m:258:3: warning: @interface of class 'NSDictionary' not found [enabled
by default]
   return [environment objectForKey: @"LD_LIBRARY_PATH"];
   ^
JDBC.m: In function '-[SQLClientJDBC backendQuery:recordType:listType:]':
JDBC.m:1310:14: warning: variable 'getBinaryStream' set but not used
[-Wunused-but-set-variable]
    jmethodID getBinaryStream;
              ^
JDBC.m: In function '-[SQLClientJDBC batch:]':
JDBC.m:1524:14: error: 'struct _JDBCTransaction' has no member named '_db'
   transaction->_db = [self retain];
              ^
JDBC.m: In function '-[SQLClientJDBC transaction]':
JDBC.m:1683:14: error: 'struct _JDBCTransaction' has no member named '_db'
   transaction->_db = [self retain];
              ^
JDBC.m: In function '-[_JDBCTransaction execute]':
JDBC.m:1739:12: error: '_db' undeclared (first use in this function)
       if ([_db connect] == NO)
            ^
JDBC.m:1739:12: note: each undeclared identifier is reported only once for
each function it appears in
JDBC.m:1789:13: warning: variable 'js' set but not used
[-Wunused-but-set-variable]
     jobject js;
             ^
make[3]: *** [obj/JDBC.obj/JDBC.m.o] Error 1

As you can see, it tries to access the _db ivar on SQLTransaction, which is
now gone and replaced with a _owner ivar that holds either an SQLClient or an
SQLClientPool.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47178>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.