Skip to content
Snippets Groups Projects
Commit e259e705 authored by Mark McDowall's avatar Mark McDowall :coffee:
Browse files

Fixed the insert so that it is able to handle descriptions and should be safe with SQLite

parent 087f2459
No related branches found
No related tags found
2 merge requests!114Update DBEntryAdaptor.pm,!114Update DBEntryAdaptor.pm
......@@ -896,8 +896,9 @@ sub _store_object_xref_mapping {
my $group = $annotext->{$ax_group};
my $gsth = $self->prepare( "
INSERT INTO associated_group
SET description = ?;" );
$sth->bind_param( 1, $ax_group, SQL_INTEGER );
( description )
VALUES ( ? )" );
$gsth->bind_param( 1, $ax_group, SQL_VARCHAR );
$gsth->execute();
my $associatedGid = $self->last_insert_id();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment