Fix bug in DSN creation

This commit is contained in:
2026-07-24 08:18:41 +02:00
parent 399e977b82
commit a2f7e4826a
5 changed files with 5 additions and 2 deletions
+1
View File
@@ -3,6 +3,7 @@
* Default settings for the sqlquery plugin
*
* @author George Pirogov <i1557@yandex.ru>
* @author Thomas Hooge <thomas@hoogi.de>
*/
//$conf['fixme'] = 'FIXME';
+1
View File
@@ -3,6 +3,7 @@
* Options for the sqlquery plugin
*
* @author George Pirogov <i1557@yandex.ru>
* @author Thomas Hooge <thomas@hoogi.de>
*/
$meta['type'] = array('multichoice', '_choices' => array('mysql', 'dblib'));
+1
View File
@@ -3,6 +3,7 @@
* English language file for sqlquery plugin
*
* @author George Pirogov <i1557@yandex.ru>
* @author Thomas Hooge <thomas@hoogi.de>
*/
// keys need to match the config setting name
+1 -1
View File
@@ -1,6 +1,6 @@
base sqlquery
author Thomas Hooge
email thomas@hoogi.de
date 2023-12-01
date 2026-07-24
name SQL query plugin (multidb)
desc Processing queries to databases and display results as a table.
+1 -1
View File
@@ -85,7 +85,7 @@ class syntax_plugin_sqlquery extends DokuWiki_Syntax_Plugin {
$password = $this->getConf('password');
// connect to database
$dsn = "{$data['type']}:host={$data['host']};dbname={$data[db]};charset=UTF8;";
$dsn = "{$data['type']}:host={$data['host']};dbname={$data['db']};charset=UTF8;";
try {
$dbh = new PDO($dsn, $user, $password);
} catch (PDOException $e) {