Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#249 closed defect (fixed)

Wrong universal string compare

Reported by: andry.ogorodnik Owned by: somebody
Priority: critical Milestone: 0.4.0
Component: Matreshka - SQL Version: 0.3.0
Keywords: Cc:

Description

Сравниваются 2 universal строки, с одинаковым (казалось бы) содержимым
$1 - получена из SQLIte базы
$2 - получена через кодек из обычной ASCII строки

$1 = (size => 7, counter => (value => 1), unused => 6, length => 6, index_map => 0x0, value => (0 => 113, 119, 101, 114, 116, 121, 30822, 25390))
$2 = (size => 7, counter => (value => 1), unused => 6, length => 6, index_map => 0x0, value => (0 => 113, 119, 101, 114, 116, 121, 0, 0))

строка из базы содержит в хвосте мусор, а код сравнения не учитывает длинну строки.

Change History (4)

comment:1 by vadim.godunko, 8 years ago

In [3223]:

Use reusable implementation of string conversion subprogram instead of
own one.

Refs #249.

comment:2 by vadim.godunko, 8 years ago

In [3224]:

Add automated test.

Refs #249.

comment:3 by vadim.godunko, 8 years ago

Milestone: 0.4.0
Resolution: fixed
Status: newclosed

comment:4 by vadim.godunko, 8 years ago

Component: Matreshka - LeagueMatreshka - SQL
Note: See TracTickets for help on using tickets.