pounard / goat-query

Goat SQL query builder built over a PHP to SQL and SQL to PHP type converter
GNU General Public License v2.0
2 stars 0 forks source link

Fix the composite row converter #73

Open pounard opened 3 years ago

pounard commented 3 years ago

Reviewing some older commits I noticed this:

return \str_starts_with($value, '(') && \str_starts_with($value, ')') && ($sqlType === 'record' || $sqlType === 'row');

This just cannot work, second call should be str_ends_with().