1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2025-01-31 16:52:12 +01:00

Order query.

This commit is contained in:
Simon Josefsson 2010-03-03 14:25:55 +00:00
parent 8b8530e61f
commit 5c2b66906e

View File

@ -80,8 +80,9 @@ if ($#ARGV>=0) {
}
my $dbh = DBI->connect($db, $dbuser, $dbpasswd, {'RaiseError' => 1});
my $sth = $dbh->prepare
('SELECT serialnr, publicname, internalname, aeskey FROM yubikeys')
my $sth = $dbh->prepare ('SELECT serialnr, publicname, internalname, aeskey '.
'FROM yubikeys '.
'ORDER BY serialnr')
or die "Couldn't prepare statement: " . $dbh->errstr;
$sth->execute()
or die "Couldn't execute statement: " . $sth->errstr;