# File lib/mysql2.rb, line 59
  def self.key_hash_as_symbols(hash)
    return nil unless hash
    Hash[hash.map { |k,v| [k.to_sym, v] }]
  end