bugGNUstep - Bugs: bug #47178, JDBC backend in SQLClient does not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47178: JDBC backend in SQLClient does not compile

Submitted by:  Niels Grewe <thebeing>
Submitted on:  Wed 17 Feb 2016 01:48:14 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 19 Feb 2016 07:13:49 AM UTC, comment #2:

Thanks! It works fine for me as well now.

Niels Grewe <thebeing>
Project Member
Thu 18 Feb 2016 09:27:26 AM UTC, comment #1:

Ah ... never noticed that because the jdbc bundle wasn't being built (configure.ac neded updates).
I just committed changes intended to fix this (at least it builds now on my system).

Richard Frith-Macdonald <CaS>
Project Member
Wed 17 Feb 2016 01:48:14 PM UTC, original submission:

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.

Niels Grewe <thebeing>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by thebeing (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Feb 2016 07:13:49 AM UTCthebeingOpen/ClosedIn Test=>Closed
    Thu 18 Feb 2016 09:27:26 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1