Revision 28975 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/SelectableDataSource.java
SelectableDataSource.java | ||
---|---|---|
418 | 418 |
*/ |
419 | 419 |
public int getFieldType(int i) throws ReadDriverException { |
420 | 420 |
// return dataSource.getFieldType(i); |
421 |
if (i>mapping.length-1) |
|
422 |
return dataSource.getFieldType(i); |
|
421 | 423 |
return dataSource.getFieldType(mapping[i]); |
422 | 424 |
} |
423 | 425 |
|
... | ... | |
511 | 513 |
* @see com.hardcode.gdbms.engine.data.DataSource#getFieldNames() |
512 | 514 |
*/ |
513 | 515 |
public String[] getFieldNames() throws ReadDriverException { |
514 |
String[] fieldNames = new String[getFieldCount()]; |
|
516 |
String[] fieldNames = new String[dataSource.getFieldCount()];
|
|
515 | 517 |
int j=0; |
516 | 518 |
for (int i=0; i < dataSource.getFieldCount(); i++) |
517 | 519 |
{ |
Also available in: Unified diff