# File lib/tapkit/access/sql.rb, line 318
                def prepare_select( attributes, lock, fetch_spec )
                        attributes.each do |attr|
                                add_select_list attr
                        end

                        @where_clause = sql_for_qualifier fetch_spec.qualifier

                        fetch_spec.sort_orderings.each do |order|
                                add_order order
                        end

                        join_expression
                        tables  = table_list @entity
                        locking = lock_clause # unsupported
                        select  = nil # 'DISTINCT', etc.

                        sql = assemble_select(attributes, lock, fetch_spec.qualifier,
                                fetch_spec.sort_orderings, select, @list_string, tables, join_clause,
                                where_clause, order_by_string, lock_clause)

                        @statement = sql
                end