Skip to content

Column name offset is a reserved word in mysql #5

@deatomium

Description

@deatomium

This is my first reported issue, sorry if something important is missing.

My script drops an error:
MSG: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'offset int(10) not null, sequence longblob, primary key(id,offset)

In Bio/DB/SeqFeature/Store/DBI/mysql.pm, the sequence table to be created has a column named "offset". In later MySQL versions, OFFSET is a reserved word. MariaDB.pm might be also affected (since 10.6).
As a workaround, placing all occurences of "offset" between backticks, my script works.

(Debian trixie, libbio-db-seqfeature-perl 1.7.5-1, MariaDB 11.8.3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions