Comments (3)
I can identify the issue with the DB2 syntax, it's exactly what you've found. DB2 requires table names to be qualified to select * if you're going to add fields to the select clause. Try aliasing the table as the query builder should handle this properly with the alias included.
from laravel-db2.
I really appreciate the response makr8100, I tried aliasing the table in my Model:
protected $table = 'SHPLOG as SHPLOG';
And it does change my query to:
select * from (select *, row_number() over (order by 1) as row_num from SHPLOG as SHPLOG where SLSHDT = 20151030) as temp_table where row_num between 21 and 40
But as you can see it still doesn't qualify the select. Is there another method of aliasing the table that you are referring to?
Thanks again.
from laravel-db2.
Fixed by 2.4
from laravel-db2.
Related Issues (20)
- Laravel 7.x HOT 1
- Bad return value with CCSID 1208 HOT 1
- Problem sending query that contains ยง char HOT 1
- how to add isolation to each query
- Table name using lower case HOT 1
- Posibility for custom Processor HOT 1
- Error typeUuid does not exist
- Error typeTinyInteger does not exist
- DB2 Union Support Lost in Framework Refactor
- Error typeJson does not exist
- Could we add a proper license to this project?
- PDOException could not find driver HOT 4
- set default charset ? HOT 1
- Update for PHP 8.0 HOT 2
- Illuminate DB ^9.0 or Work with Laravel 9
- Problems with charset
- Lumen: Unsupported driver [db2_ibmi_odbc]. HOT 1
- Laravel 10 Support HOT 6
- PHP8 Support? HOT 1
- IBM DB2 integration with Laravel 8 using cooperl/laravel-db2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-db2.