Closed sebaris closed 1 week ago
Thanks for reporting, will review this further given the time.
Concerning hasTable
, we can re-use the schema grammar to check the table existence if needed.
Please feel free to submit a PR if possible. Thanks!
This issue is stale because it has been open for 30 days with no activity.
Summary of problem or feature request
In the class Yajra\Oci8\Query\Grammars\OracleGrammar.php when the compileUpsert method is called to form the respective SQL referring to Eloquent's upsert method. Every table name must go through the wrapTable function which always adds the schema prefix.
Line 657 calls wrapTable but with a temporary name "laravel_source", when the schema prefix is added this will fail because the table does not exist.
Code snippet of problem
In the wrapTable function, line 245
This could be solved by adding a check that the table exists to add the prefix, if it does not exist only the table name is returned
I hope this can help. thanks.
System details