geopackage-sdk/src/main/java/mil/nga/geopackage/db/GeoPackageConnection.java
@Override
    public boolean columnExists(String tableName, String columnName) {

        boolean exists = false;

        Cursor cursor = rawQuery("PRAGMA table_info(" + CoreSQLUtils.quoteWrap(tableName) + ")", null);
        try {
            int nameIndex = cursor.getColumnIndex(NAME_COLUMN);
            while (cursor.moveToNext()) {
                String name = cursor.getString(nameIndex);
                if (columnName.equals(name)) {
                    exists = true;
                    break;
                }
            }
        } finally {
            cursor.close();
        }

        return exists;
    }
@Override
    public boolean columnExists(String tableName, String columnName) {

        boolean exists = false;

        Cursor cursor = rawQuery("PRAGMA table_info(" + CoreSQLUtils.quoteWrap(tableName) + ")", null);
        try {
            int nameIndex = cursor.getColumnIndex(NAME_COLUMN);
            while (cursor.moveToNext()) {
                String name = cursor.getString(nameIndex);
                if (columnName.equals(name)) {
                    exists = true;
                    break;
                }
            }
        } finally {
            cursor.close();
        }

        return exists;
    }
@ Override public boolean columnExists ( String tableName , String columnName ) { boolean exists = false ; Cursor cursor = rawQuery ( "PRAGMA table_info(" + CoreSQLUtils . quoteWrap ( tableName ) + ")" , null ) ; try { int nameIndex = cursor . getColumnIndex ( NAME_COLUMN ) ; while ( cursor . moveToNext ( ) ) { String name = cursor . getString ( nameIndex ) ; if ( columnName . equals ( name ) ) { exists = true ; break ; } } } finally { cursor . close ( ) ; } return exists ; }
{@inheritDoc}
{