Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v11.6.1] Randomly Error: ORA-00907: missing right parenthesis #891

Closed
nathanaelytj opened this issue Sep 9, 2024 · 2 comments
Closed

Comments

@nathanaelytj
Copy link

Summary of problem or feature request

After upgrading to v11.6.1 the log suddenly reporting some strange issues:

Error Code : 907
Error Message : ORA-00907: missing right parenthesis
Position : 158
Statement : select from (select "ORAFIN"."R_JOB"., row_number() over (order by "ID_JOB" asc) as rn from (select * from "ORAFIN"."R_JOB" order by "ID_JOB" asc) "ORAFIN"."R_JOB") "ORAFIN"."R_JOB" where rn between 1 and 1000
Bindings : []

This doesn't happen in v11.6.0 so downgrading solved the issue for now.

Code snippet of problem

This bug randomly happen to any Laravel Model.
Attached is sinppet of the trace:

{ "class": "Illuminate\\Database\\QueryException", "message": "Error Code : 907\nError Message : ORA-00907: missing right parenthesis\nPosition : 158\nStatement : select * from (select \"ORAFIN\".\"R_JOB\".*, row_number() over (order by \"ID_JOB\" asc) as rn from (select * from \"ORAFIN\".\"R_JOB\" order by \"ID_JOB\" asc) \"ORAFIN\".\"R_JOB\") \"ORAFIN\".\"R_JOB\" where rn between 1 and 1000\nBindings : []\n (Connection: kettle, SQL: select * from (select \"ORAFIN\".\"R_JOB\".*, row_number() over (order by \"ID_JOB\" asc) as rn from (select * from \"ORAFIN\".\"R_JOB\" order by \"ID_JOB\" asc) \"ORAFIN\".\"R_JOB\") \"ORAFIN\".\"R_JOB\" where rn between 1 and 1000)", "code": 907, "file": "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Connection.php:825", "trace": [ "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Connection.php:779", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Connection.php:398", "/var/www/vhosts/localhost/vendor/yajra/laravel-oci8/src/Oci8/Query/OracleBuilder.php:159", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3073", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3661", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3072", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:759", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:741", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:172", "/var/www/vhosts/localhost/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:124",

System details

  • Operating System: Ubuntu 24.04 LTS
  • PHP Version: 8.3
  • Laravel Version: 11
  • Laravel-OCI8 Version: 11.6.1
@yajra
Copy link
Owner

yajra commented Sep 9, 2024

Oh my bad, I think I tagged on the wrong branch. I will rebuild a new release.

@yajra
Copy link
Owner

yajra commented Sep 9, 2024

Fixed via https://github.com/yajra/laravel-oci8/releases/tag/v11.6.2, thanks for reporting.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants