Skip to content

Commit 23bb561

Browse files
committed
Add bind_param_attributes to ::DBD::MariaDB
1 parent ec484e0 commit 23bb561

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

lib/Data/ObjectDriver/Driver/DBD/MariaDB.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,16 @@ use base qw( Data::ObjectDriver::Driver::DBD::mysql );
77

88
sub fetch_id { $_[3]->{mariadb_insertid} || $_[3]->{insertid} }
99

10+
sub bind_param_attributes {
11+
my ($dbd, $data_type) = @_;
12+
if ($data_type) {
13+
if ($data_type eq 'blob') {
14+
return DBI::SQL_BINARY;
15+
} elsif ($data_type eq 'binchar') {
16+
return DBI::SQL_BINARY;
17+
}
18+
}
19+
return;
20+
}
21+
1022
1;

0 commit comments

Comments
 (0)