You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how far advanced do you think the analysis is, should we start reporting issues? I get errors thrown on some more non-standard queries, such as CROSS join or queries with subqueries.
But I also tested with simple select count(*) from xx and I didnt get a RangeIntegerType. I tried digging deeper and found that it never got past this condition https://github.com/staabm/phpstan-dba/blob/main/src/SqlAst/ParserInference.php#L102 ($valueType was min: 0, max: null but it was not merged to $resultType due to hasOffsetValueType === false)
I am not sure I understand all the parts of the code to start sending PRs though.
Thanks
The text was updated successfully, but these errors were encountered:
thx for asking. for SQL AST to work you need to enable it in your phpstan-dba-bootstrap via RuntimeConfiguration
after thats done and you are using mysql it should work for select count(*) from xx.
I would love someone doing more testing with it.
such as CROSS join or queries with subqueries.
I have open todos regarding joins, which I have expressed here #527
if you have concrete examples and concrete expectations - at best already in form of a unit test - that would be really awesome.
But I also tested with simple select count(*) from xx and I didnt get a RangeIntegerType
Hello @staabm
how far advanced do you think the analysis is, should we start reporting issues? I get errors thrown on some more non-standard queries, such as
CROSS join
or queries with subqueries.But I also tested with simple
select count(*) from xx
and I didnt get aRangeIntegerType
. I tried digging deeper and found that it never got past this condition https://github.com/staabm/phpstan-dba/blob/main/src/SqlAst/ParserInference.php#L102 ($valueType
wasmin: 0, max: null
but it was not merged to$resultType
due tohasOffsetValueType === false
)I am not sure I understand all the parts of the code to start sending PRs though.
Thanks
The text was updated successfully, but these errors were encountered: