To get the columns of a table in the same order they where created in the database, it would be great to add a "order by" clause to the statement.
Code snippet of problem
It would be enough to change the method "compileColumnExists" in the file "src/Oci8/Schema/Grammars/OracleGrammar.php" from this:
public function compileColumnExists($database, $table)
{
return "select column_name from all_tab_cols where upper(owner) = upper('{$database}') and upper(table_name) = upper('{$table}')";
}
to this:
public function compileColumnExists($database, $table)
{
return "select column_name from all_tab_cols where upper(owner) = upper('{$database}') and upper(table_name) = upper('{$table}') order by column_id";
}
Summary of problem or feature request
To get the columns of a table in the same order they where created in the database, it would be great to add a "order by" clause to the statement.
Code snippet of problem
It would be enough to change the method "compileColumnExists" in the file "src/Oci8/Schema/Grammars/OracleGrammar.php" from this:
to this: