Add LoadBlobFromFile
This commit is contained in:
parent
838b728938
commit
30f91ff58e
@ -16,8 +16,14 @@ returns integer
|
||||
external name 'my_first_udr_kit!MFK_flagged!How is this function used?' engine udr;
|
||||
|
||||
|
||||
|
||||
create or alter function LoadBlobFromFile (
|
||||
afilename varchar(8191),
|
||||
ablob BLOB
|
||||
) returns bigint
|
||||
external name 'my_first_udr_kit!MFK_Load_Blob_From_File!Load file and save to Blob'
|
||||
engine udr;
|
||||
|
||||
-- Add some grants here perhaps?
|
||||
grant execute on function div to public;
|
||||
grant execute on function flagged to public;
|
||||
grant execute on function LoadBlobFromFile to public;
|
||||
|
@ -20,6 +20,11 @@ begin
|
||||
)
|
||||
returns integer;
|
||||
|
||||
function LoadBlobFromFile (
|
||||
afilename varchar(8191),
|
||||
ablob BLOB
|
||||
)
|
||||
returns bigint;
|
||||
|
||||
end ^
|
||||
|
||||
@ -40,6 +45,16 @@ begin
|
||||
returns integer
|
||||
external name 'my_first_udr_kit!MFK_flagged!How is this function used?' engine udr;
|
||||
|
||||
|
||||
function LoadBlobFromFile (
|
||||
afilename varchar(8191),
|
||||
ablob BLOB
|
||||
)
|
||||
returns bigint
|
||||
external name 'my_first_udr_kit!MFK_Load_Blob_From_File!Load file and save to Blob' engine udr;
|
||||
|
||||
|
||||
|
||||
end ^
|
||||
|
||||
|
||||
|
@ -169,11 +169,11 @@ FB_UDR_END_FUNCTION
|
||||
|
||||
|
||||
/*** DDL
|
||||
create function Blob_Save (
|
||||
create or alter function LoadBlobFromFile (
|
||||
afilename varchar(8191),
|
||||
ablob BLOB
|
||||
) returns bigint
|
||||
external name 'my_first_udr_kit!MFK_Blob_Save!Load file and save to Blob'
|
||||
external name 'my_first_udr_kit!MFK_Load_Blob_From_File!Load file and save to Blob'
|
||||
engine udr;
|
||||
***/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user