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
Problen in yii\db\pgsql\ArrayParser, method parseArray() (line 51) always skips first symbol, because expecting it to be equal to "{". But for "data[1]" query result contains only item value "qwe", not "{qwe}".
Possible solution:
replace for (++$i; $i < $len; ++$i) with for ($i; $i < $len; ++$i) (line 55)
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
Creating table:
CREATE TABLE test (data VARCHAR(255)[]);
Filling up:
INSERT INTO test (data) VALUES (ARRAY['qwe', 'asd']);
Creating simple model fro this table, named "Test":
Selecting one item of array:
What is the expected result?
What do you get instead?
First symbol lost.
Additional info
Problen in yii\db\pgsql\ArrayParser, method parseArray() (line 51) always skips first symbol, because expecting it to be equal to "{". But for "data[1]" query result contains only item value "qwe", not "{qwe}".
Possible solution:
replace
for (++$i; $i < $len; ++$i)
withfor ($i; $i < $len; ++$i)
(line 55)The text was updated successfully, but these errors were encountered: