Menu

#14 create_field error

open-fixed
None
9
2009-07-27
2009-07-24
No

Run attached program. eusql is crashing with the following message. EuSQL is trying to access an element of the third element of ok, which is an empty sequence.

c:/eu_include/eusql/eusql.e:7860 in function create_field()
subscript value 1 is out of bounds, reading from a sequence of length 0
db_name = {116't',101'e',115's',116't',105'i',110'n',103'g',46'.',101'e',
100'd',98'b'}
table_name = {80'P',76'L',65'A',89'Y',69'E',82'R',83'S'}
field_name = {78'N',97'a',109'm',101'e'}
datatype = 46'.'
build_index = 0
ok = {
{
{
{85'U',78'N',73'I',81'Q',85'U',69'E',95'_',73'I',68'D'},
{}
},
{
{78'N',65'A',77'M',69'E'},
{}
},
{
{72'H',65'A',78'N',68'D'},
{}
},
{
{68'D',82'R',65'A',87'W',32' ',80'P',73'I',76'L',69'E'},
{}
},
{
{68'D',73'I',83'S',67'C',65'A',82'R',68'D',32' ',80'P',73'I',
76'L',69'E'},
{}
},
{
{73'I',78'N',70'F',76'L',85'U',69'E',78'N',67'C',69'E',32' ',
80'P',73'I',76'L',69'E'},
{}
},
{
{67'C',85'U',82'R',82'R',69'E',78'N',84'T',32' ',83'S',67'C',
79'O',82'R',69'E'},
{}
}
},
{{},{}},
{}
}

Discussion

  • Christopher K. Lester

     
  • Christopher K. Lester

    • priority: 5 --> 9
     
  • Matt Lewis

    Matt Lewis - 2009-07-27

    Improved error checking for attempts to create duplicate fields. Fixed in r52.

     
  • Matt Lewis

    Matt Lewis - 2009-07-27
    • assigned_to: nobody --> mattlewis
    • status: open --> open-fixed
     

Log in to post a comment.