mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
KickstartForm: there is no dual on PostgreSQL
This commit is contained in:
parent
46e230c5ad
commit
73b833ed6b
@ -155,16 +155,15 @@ class KickstartForm extends QuickForm
|
|||||||
$db = $resource->getDbAdapter();
|
$db = $resource->getDbAdapter();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$query = $db->select()->from('dual', '(1)');
|
$db->fetchOne('SELECT 1');
|
||||||
$db->fetchOne($query);
|
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->getElement('resource')
|
$this->getElement('resource')
|
||||||
->addError('Could not connect to database: ' . $e->getMessage());
|
->addError('Could not connect to database: ' . $e->getMessage());
|
||||||
|
|
||||||
$hint = $this->translate(
|
$hint = $this->translate(
|
||||||
'Please make sure that your database grants enough permissions'
|
'Please make sure that your database exists and your user has'
|
||||||
. ' and that you deployed the correct %s.'
|
. ' been granted enough permissions'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addHtmlHint($hint, array('name' => 'HINT_db_perms'));
|
$this->addHtmlHint($hint, array('name' => 'HINT_db_perms'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user