Skip to content
Snippets Groups Projects
Commit 47d18696 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

release -> db_release for MySQL 5 compatibility

parent 5c0c74a4
No related branches found
No related tags found
No related merge requests found
...@@ -592,7 +592,7 @@ sub write_to_projection_db { ...@@ -592,7 +592,7 @@ sub write_to_projection_db {
my $db = DBI->connect("dbi:mysql:host=$host;port=$port;database=$dbname", "$user", "$pass", {'RaiseError' => 1}) || die "Can't connect to " . $dbname; my $db = DBI->connect("dbi:mysql:host=$host;port=$port;database=$dbname", "$user", "$pass", {'RaiseError' => 1}) || die "Can't connect to " . $dbname;
my $sth = $db->prepare("INSERT INTO projections (release, timestamp, from_db, from_species_latin, from_species_common, to_db, to_species_latin, to_species_common) VALUES (?, NOW(), ?, ?, ?, ?, ?, ?)"); my $sth = $db->prepare("INSERT INTO projections (db_release, timestamp, from_db, from_species_latin, from_species_common, to_db, to_species_latin, to_species_common) VALUES (?, NOW(), ?, ?, ?, ?, ?, ?)");
$sth->execute($release, $sth->execute($release,
$from_dbname, $from_dbname,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
CREATE TABLE projections ( CREATE TABLE projections (
release INT NOT null, db_release INT NOT null,
timestamp DATETIME, timestamp DATETIME,
from_db VARCHAR(255), from_db VARCHAR(255),
from_species_latin VARCHAR(255), from_species_latin VARCHAR(255),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment