Changeset 34899 for gs2-extensions


Ignore:
Timestamp:
2021-02-18T16:19:01+13:00 (3 years ago)
Author:
su41
Message:

Had an if statement that was blocking one of the query results, giving one less than the total. It has now been removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/tipple-bridge/trunk/src/src/main/java/sqlCli.java

    r34897 r34899  
    137137
    138138            int dbColumn = resultMetaData.getColumnCount();
    139             System.out.println("  Number of columns in table retrieved: " + dbColumn);
     139            System.out.println(" Number of columns in table retrieved: " + dbColumn);
    140140
    141141            //create gson object and have the file write the opening bracket for valid json
    142142            Gson myGSon = new Gson();
    143143            file.write("[");
    144 
    145             //does nothing, assuming the try catch picks up the error first,
    146             if(!myResult.next()){
    147                 System.out.println("Access denied");
    148             }
    149144
    150145            while(myResult.next()){
Note: See TracChangeset for help on using the changeset viewer.