@@ -22,7 +22,7 @@ impl Type<Sqlite> for [u8] {
2222
2323impl Encode < ' _ , Sqlite > for & ' _ [ u8 ] {
2424 fn encode_by_ref ( & self , args : & mut SqliteArgumentsBuffer ) -> Result < IsNull , BoxDynError > {
25- args. push ( SqliteArgumentValue :: Blob ( self . to_vec ( ) ) ) ;
25+ args. push ( SqliteArgumentValue :: Blob ( Arc :: new ( self . to_vec ( ) ) ) ) ;
2626
2727 Ok ( IsNull :: No )
2828 }
@@ -36,13 +36,13 @@ impl<'r> Decode<'r, Sqlite> for &'r [u8] {
3636
3737impl Encode < ' _ , Sqlite > for Box < [ u8 ] > {
3838 fn encode ( self , args : & mut SqliteArgumentsBuffer ) -> Result < IsNull , BoxDynError > {
39- args. push ( SqliteArgumentValue :: Blob ( self . into_vec ( ) ) ) ;
39+ args. push ( SqliteArgumentValue :: Blob ( Arc :: new ( self . into_vec ( ) ) ) ) ;
4040
4141 Ok ( IsNull :: No )
4242 }
4343
4444 fn encode_by_ref ( & self , args : & mut SqliteArgumentsBuffer ) -> Result < IsNull , BoxDynError > {
45- args. push ( SqliteArgumentValue :: Blob ( self . clone ( ) . into_vec ( ) ) ) ;
45+ args. push ( SqliteArgumentValue :: Blob ( Arc :: new ( self . clone ( ) . into_vec ( ) ) ) ) ;
4646
4747 Ok ( IsNull :: No )
4848 }
@@ -60,13 +60,13 @@ impl Type<Sqlite> for Vec<u8> {
6060
6161impl Encode < ' _ , Sqlite > for Vec < u8 > {
6262 fn encode ( self , args : & mut SqliteArgumentsBuffer ) -> Result < IsNull , BoxDynError > {
63- args. push ( SqliteArgumentValue :: Blob ( self ) ) ;
63+ args. push ( SqliteArgumentValue :: Blob ( Arc :: new ( self ) ) ) ;
6464
6565 Ok ( IsNull :: No )
6666 }
6767
6868 fn encode_by_ref ( & self , args : & mut SqliteArgumentsBuffer ) -> Result < IsNull , BoxDynError > {
69- args. push ( SqliteArgumentValue :: Blob ( self . clone ( ) ) ) ;
69+ args. push ( SqliteArgumentValue :: Blob ( Arc :: new ( self . clone ( ) ) ) ) ;
7070
7171 Ok ( IsNull :: No )
7272 }
@@ -80,13 +80,13 @@ impl<'r> Decode<'r, Sqlite> for Vec<u8> {
8080
8181impl Encode < ' _ , Sqlite > for Cow < ' _ , [ u8 ] > {
8282 fn encode ( self , args : & mut SqliteArgumentsBuffer ) -> Result < IsNull , BoxDynError > {
83- args. push ( SqliteArgumentValue :: Blob ( self . to_vec ( ) ) ) ;
83+ args. push ( SqliteArgumentValue :: Blob ( Arc :: new ( self . into ( ) ) ) ) ;
8484
8585 Ok ( IsNull :: No )
8686 }
8787
8888 fn encode_by_ref ( & self , args : & mut SqliteArgumentsBuffer ) -> Result < IsNull , BoxDynError > {
89- args. push ( SqliteArgumentValue :: Blob ( self . to_vec ( ) ) ) ;
89+ args. push ( SqliteArgumentValue :: Blob ( Arc :: new ( self . to_vec ( ) ) ) ) ;
9090
9191 Ok ( IsNull :: No )
9292 }
0 commit comments