# File lib/dbd_db2/DB2.rb, line 123
    def tables
      rc, stmt = SQLAllocHandle(SQL_HANDLE_STMT, @handle)
      error(rc, "Could not allocate Statement")

      rc = SQLTables(stmt, "", "%", "%", "TABLE, VIEW")
      error(rc, "Could not execute SQLTables") 
      
      st = Statement.new(stmt, nil)
      res = st.fetch_all
      st.finish

      res.collect {|row| row[1].to_s + "." + row[2].to_s} 
    end