Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-parser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dbx_mysql.pl')
-rw-r--r--dbx_mysql.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/dbx_mysql.pl b/dbx_mysql.pl
new file mode 100644
index 0000000..3c03bc6
--- /dev/null
+++ b/dbx_mysql.pl
@@ -0,0 +1,9 @@
+%dbx = (
+ epoch_to_timestamp_fn => 'FROM_UNIXTIME',
+ to_hex_string => sub {
+ my ($bin) = @_;
+ return "X'" . unpack("H*", $bin) . "'";
+ },
+);
+
+1;