| 1 | package Rose::DB::Object::Metadata::Column::Blob; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | use Rose::DB::Object::Metadata::Column::Text; | ||
| 6 | our @ISA = qw(Rose::DB::Object::Metadata::Column::Text); | ||
| 7 | |||
| 8 | use DBI qw(:sql_types); | ||
| 9 | |||
| 10 | our $VERSION = '0.781'; | ||
| 11 | |||
| 12 | sub type { 'blob' } | ||
| 13 | |||
| 14 | sub dbi_requires_bind_param | ||
| 15 | { | ||
| 16 | my($self, $db) = @_; | ||
| 17 | return $db->driver eq 'sqlite' ? 1 : 0; | ||
| 18 | } | ||
| 19 | |||
| 20 | sub dbi_bind_param_attrs | ||
| 21 | { | ||
| 22 | my($self, $db) = @_; | ||
| 23 | return $db->driver eq 'sqlite' ? SQL_BLOB : undef; | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | __END__ |