Comments (7)
This has been the limitation with original DSQL too. If you FROM another query/expression you can only have one source.
I am not sure if SQL vendors are happy about having multiple dynamic data sources and joining them together, but if it's a working case, we can implement multi-expression source support through PR.
from dsql.
That's why I proposed to always save tables in $this->args['table'][$table_alias] = $table
structured array.
from dsql.
I agree, but it's low priority for us. It will not impact the interface either, so we can implement this later.
Also if table() uses expression without alias, it's still a valid format, in which case we could probably use ['table'][0]
from dsql.
yes it's valid format while you have only one table, but can lead to strange and hard to track SQL issues.
I'm ready to implement this sometime soon, just don't close this issue ;)
from dsql.
MySQL will throw exception if we use sub-query as table without alias:
SQLSTATE[42000]: Syntax error or access violation: 1248 Every derived table must have its own alias
from dsql.
Fixed here: #64
from dsql.
implemented here: 1a29ef2
from dsql.
Related Issues (20)
- is there a "rows_affected()" or equivalent for dSQL queries? HOT 7
- Implement exprNow() method HOT 2
- PHP has reserved all method names with a double underscore prefix for future use. HOT 1
- Legal rollback of atomic method HOT 8
- Segfault in CI tests / GH Actions HOT 1
- Connection_Counter should not return iterator HOT 3
- Enable strict types for dsql repo
- AgileToolKit SSL/TLS HOT 1
- See our "Awesome Queries" gallery HOT 1
- Remove reference property HOT 3
- Replace Connection with DBAL
- Expression getCastValue turns everything into a string. HOT 7
- No wrapping parenthesis around nested conditions HOT 3
- Add CI testing with Oracle DB
- Add CI testing with MSSQL
- Fix and reintroduce support for 4000+ bytes CLOB/BLOB for Oracle HOT 1
- Query cannot render complex condition in the HAVING clause
- Add space before Expression in 'set' value HOT 2
- Cast bool params to int in getDebugQuery HOT 1
- Status/result of non-select Query HOT 4
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 dsql.