laravel-oci8 icon indicating copy to clipboard operation
laravel-oci8 copied to clipboard

Error Code : 2421 Error Message : ORA-02421:

Open claudemirton opened this issue 7 years ago • 2 comments

Summary of problem or feature request

Hi, Yajra I´m facing a problem when trying to connect a Oracle database 10g. According to DBA, it´s not possible alter these paremeters (time and date) on that version of database :(

What should i do? Any workaround?

Thanks in advance.

Code snippet of problem

System details

  • Operating System - windows 10
  • PHP Version - 7.1.9
  • Laravel Version - 5.6.25
  • Laravel-OCI8 Version 5.6.3

claudemirton avatar Jun 20 '18 14:06 claudemirton

For a workaround, you can duplicate the Oci8ServiceProvider.php class and remove any alter session that is not applicable on your DB version.

You will also need to disable auto package discovery for the package and load the custom provider manually on your app config providers. Search the laravel docs on how providers works in case you are not familiar with it.

P.S. Laravel may not work properly if we don't set the time format like on PHP. Make sure you convert any date related sql to match your DB date format.

yajra avatar Jun 21 '18 13:06 yajra

Thank you indeed.

claudemirton avatar Jun 21 '18 14:06 claudemirton

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Nov 14 '22 03:11 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Nov 22 '22 03:11 github-actions[bot]