Closed onshorechet closed 4 years ago
Writing a go function that returns []byte will generate a sql header like:
CREATE OR REPLACE FUNCTION CompressGzip(data text,level bigint) RETURNS [] AS '$libdir/vl', 'CompressGzip' LANGUAGE c VOLATILE STRICT;
From this go function:
func CompressGzip(data string, level int) []byte { return cGzip([]byte(data), level); }
Amending that sql header and installing the function will result in a server crash on use of the function.
I take a look at it.
Writing a go function that returns []byte will generate a sql header like:
From this go function:
Amending that sql header and installing the function will result in a server crash on use of the function.