AzonMedia / guzaba2

Guzaba Framework v2
MIT License
2 stars 0 forks source link

Throw an exception if two columns with the same name are present in the result #9

Open kenashkov opened 4 years ago

kenashkov commented 4 years ago

Do this for:

kenashkov commented 4 years ago

Currently this is not possible to be done with coroutine\mysql as fetch() only supports associative array (no indexed array like mysqli_stmt->fetch_all()). In order this to be implemented an SQL parses needs to be used and the query to be validated this way.

Once the query is validated it should be flagged and this validation is to be skipped in the later requests.

kenashkov commented 4 years ago

If an SQL parses is added then also a check for table.* should be added and prevent its use. Always require all columns to be individually selected.