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:
authorEduardo M KALINOWSKI <eduardo@kalinowski.com.br>2022-06-04 23:10:29 +0300
committerEduardo M KALINOWSKI <eduardo@kalinowski.com.br>2022-06-06 14:33:03 +0300
commite5bef3555741aff3c32271fa1358ea3eb4329bfa (patch)
tree8104061ac77d11e60e5ecac5f28d41ab06caafb0 /dbx_mysql.pl
parentef90e4848dbceb2d3ca0ff67bad5b25fb8b0fc74 (diff)
Adjustments to make insertion in PgSQL work
Objects with database-specific definitions for each database type were created to make that possible.
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;