public static NSArray rawRowsForSqlWithBindings( EOEditingContext ec, String entityName, String query, ERXSQLBinding... bindings ) {
EODatabaseChannel databaseChannel = databaseContextForEntityName(ec,entityName).availableChannel();
EOAdaptorChannel adaptorChannel = databaseChannel.adaptorChannel();
EOEntity entity = EOUtilities.entityNamed(ec, entityName);
EOSQLExpression expression = adaptorChannel.adaptorContext().adaptor().expressionFactory().expressionForEntity( entity );
expression.setStatement( processedQueryString( query, expression, bindings ) );
EOFetchSpecification spec = new EOFetchSpecification( entityName, null, null );
spec.setFetchesRawRows(true);
spec.setHints( new NSDictionary( expression, EODatabaseContext.CustomQueryExpressionHintKey ) );