Uwe Ebel
39838f1606
Add database resource type IBM for DB2
...
It uses the pdo_ibm driver and Zend Adapter Zend_Db_Adapter_Pdo_Ibm.
Signed-off-by: Markus Frosch <markus.frosch@icinga.com>
2017-09-19 14:32:09 +02:00
Eric Lippmann
f25420f458
DbConnection: Fix "Driver does not support setting attributes" for the pdolib extension
...
fixes #2545
2017-07-11 17:20:25 +02:00
Eric Lippmann
a9e6814785
Revert "DbConnection: Fix "Driver does not support setting attributes" for the pdolib extension"
...
This reverts commit 3e743a8799
.
Referenced the wrong issue number.
2017-07-11 17:19:16 +02:00
Eric Lippmann
3e743a8799
DbConnection: Fix "Driver does not support setting attributes" for the pdolib extension
...
fixes #12640
2017-07-11 17:17:48 +02:00
Eric Lippmann
f02d631aa1
DbConnection: Respect port settings for all database types and provide defaults
2017-07-11 17:11:44 +02:00
Johannes Meyer
fdb31e8d1c
DbConnection: Support raw sql expressions in methods insert() and update()
2017-06-06 09:07:52 +02:00
Johannes Meyer
181e2ef05c
Swag: Fix swag (aka a whole bunch of code style issues..)
2017-01-27 14:48:59 +01:00
Alexander A. Klimov
e10384770d
DbResourceForm: make the encryption selection a checkbox
...
refs #11115
2016-12-08 17:52:07 +01:00
Alexander A. Klimov
0bafc944d3
Conform to code style guidelines
...
refs #11115
2016-12-08 17:09:00 +01:00
Alexander A. Klimov
dce6b4eb08
Merge branch 'master' into feature/add-ssl-support-to-mysql-database-resources-11115
2016-12-08 16:50:41 +01:00
Eric Lippmann
4891afd646
Add paramater type to ResourceFactory::getResourceConfigs()
...
This allows to filter resources by type.
2016-11-17 10:14:45 +01:00
Johannes Meyer
3a619eb8c7
DbConnection: Don't ignore asterisks when rendering filters
...
refs #11885
2016-11-11 09:18:53 +01:00
Johannes Meyer
634a69aec9
DbConnection: Explicitly check for NULL when rendering unequal filters
...
resolves #12852
2016-11-11 09:17:58 +01:00
Johannes Meyer
0152a5941d
DbQuery: Fix wrong operator precedence when rendering unequal filters
...
fixes #13107
refs #12852
2016-11-10 13:10:31 +01:00
Alexander A. Klimov
7d94c1fddb
DbQuery: handle strange NULL comparision results
...
refs #12852
2016-10-20 15:40:33 +02:00
Thomas Gelf
2b50f6ff10
FilterExpression: render boolean true as such
...
fixes #12299
2016-08-03 13:03:08 +00:00
Eric Lippmann
fee45a2438
Database: Never ignore asterisk filters
...
fixes #11885
2016-06-02 17:27:32 +02:00
Johannes Meyer
b759ab6f5a
DbResourceForm: Don't show SSL form elements by default
...
Addded additionally a check for PHP 5.4 so that these elements
are not shown for earlier versions.
refs #11115
2016-05-27 15:45:22 +02:00
Lee Clemens
87e774cb88
Add SSL Support to MySQL resources
...
Signed-off-by: Johannes Meyer <johannes.meyer@netways.de>
2016-05-27 13:15:48 +02:00
Eric Lippmann
a5119a7a2e
Fix TreeNodeIterator::isEmpty()
2016-03-30 15:31:53 +02:00
Eric Lippmann
98934e9c5f
lib/DbConnection: Use isset for charset check
2016-03-24 17:55:30 +01:00
Raphael Bicker
ea871ea032
Fix Cannot execute queries while other unbuffered queries are active
...
fixes #11264
Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
2016-03-24 17:53:55 +01:00
Thomas Gelf
1fba491160
DbConnection: fix utf8-encoded MySQL connections
2016-02-29 20:58:34 +01:00
Eric Lippmann
e4a0678df0
Load resources from config automatically instead of throwing an exception
...
fixes #10918
2016-02-26 12:29:30 +01:00
Johannes Meyer
cdb873cbdb
ResourceFactory: Validate a resource's configuration
...
Probably only a quickfix, but feels still more proper than the
previous solution, on a second thought..
2016-02-12 14:19:44 +01:00
Alexander A. Klimov
8493540f43
FilterExpression: provide default value for setCaseSensitive()
...
refs #11051
2016-02-11 13:32:42 +01:00
Alexander A. Klimov
e97426e1df
FilterExpression: document getCaseSensitive() and setCaseSensitive()
...
refs #11051
2016-02-11 13:30:34 +01:00
Alexander A. Klimov
aae7c1150e
Implement FilterMatchNotCaseInsensitive
...
refs #11051
2016-02-11 12:00:33 +01:00
Alexander A. Klimov
8ebc92ee44
Implement FilterMatchCaseInsensitive
...
refs #11051
2016-02-11 11:59:57 +01:00
Alexander A. Klimov
809861cb53
FilterExpression: make case insensitive matching possible
...
refs #11051
2016-02-11 11:48:50 +01:00
Alexander A. Klimov
474803fee4
Change all license headers to only reflect a file's year of creation
...
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
dad9538496
Doc: Fix detection whether documentation is empty
2015-12-21 11:09:20 +01:00
Alexander A. Klimov
d087ae2575
Make Service Grid working with host names that contain only digits
...
fixes #10790
2015-12-16 11:37:30 +01:00
Johannes Meyer
8dd1ad869f
DbQuery: Mark method renderFilter() deprecated
2015-12-07 10:31:25 +01:00
Johannes Meyer
4f8b6ffeb3
DbConnection: Transfer DbQuery::whereToSql() updates to renderFilterExpression()
2015-12-07 10:31:10 +01:00
Johannes Meyer
5be48fc923
DbQuery: Do not call Zend_Db_Select::columns() unless it's necessary
...
This makes it possible to just use a DbQuery as "union container" without
ever calling from() on it.
2015-12-03 13:53:34 +01:00
Johannes Meyer
28cd9681c8
DbQuery: Add method union()
2015-12-03 13:50:01 +01:00
Johannes Meyer
d7045a4c09
FilterExpression: Encode the expression when rendering the query string
...
fixes #10623
fixes #8713
2015-11-13 16:54:08 +01:00
Johannes Meyer
a500937b7d
Properly handle undefined configuration values
...
fixes #10597
2015-11-13 16:14:11 +01:00
Johannes Meyer
26e6acf9af
ListController: Fix servicegrid grouping when applying group restrictions #2
...
PostgreSQL had still issues with it. Quickfix only, again.
refs #10316
2015-11-13 14:42:28 +01:00
Johannes Meyer
d0ab001437
PivotTable: Fix axis queries if only one is being filtered
...
refs #10316
2015-11-13 11:44:00 +01:00
Johannes Meyer
b182a31b90
DbQuery: Catch exceptions in __toString()
2015-11-12 16:32:29 +01:00
Johannes Meyer
6c07881466
FilterChain: Fix and document method listFilterColumns()
...
refs #10370
2015-11-10 13:16:40 +01:00
Johannes Meyer
1e35a17ec1
DbQuery: Support not equal comparisons with arrays
2015-11-05 15:49:15 +01:00
Thomas Gelf
f88bd525f1
DbConnection: respect charset parameter
...
refs #10359
2015-10-27 13:21:35 +01:00
Johannes Meyer
65e7f7a8ca
FilterExpression: Give the row a chance to dynamically return a value
...
refs #10304
2015-10-05 14:01:03 +02:00
Eric Lippmann
61357da35c
Merge branch 'bugfix/group-by-9956'
...
fixes #9956
2015-10-01 23:05:27 +02:00
Johannes Meyer
7a8ac9796b
ArrayDatasource: Make it cloning itself when creating a new query
...
Quickfix only. The actual issue is that the datasource caches indifferently
the result of the first evaluated query. This should be done by the query.
2015-09-28 12:26:33 +02:00
Eric Lippmann
5008537683
lib: Fix PHPDoc of SimpleQuery::getOrder()
2015-09-27 12:57:47 +02:00
Eric Lippmann
78989c0aad
lib: Add SimpleQuery::clearOrder()
2015-09-27 12:56:48 +02:00
Johannes Meyer
a55cced039
Merge branch 'master' into feature/custom-menu-items-5600
...
Conflicts:
modules/monitoring/application/views/scripts/list/comments.phtml
modules/monitoring/application/views/scripts/list/downtimes.phtml
2015-09-25 14:12:43 +02:00
Johannes Meyer
9042d55dd4
FilterExpression: Add support multi value columns in method matches()
...
refs #5600
2015-09-23 13:02:13 +02:00
Johannes Meyer
e4e560ab1a
FilterMatchNot: Do not re-invent the parents implementation of matches()
...
refs #5600
2015-09-23 13:01:08 +02:00
Johannes Meyer
939188be94
FilterMatch: Do not re-invent the parents implementation of matches()
...
refs #5600
2015-09-23 13:00:46 +02:00
Eric Lippmann
771efae1a2
lib/db: Allow to configure mssql resources
...
refs #9683
2015-09-07 16:20:37 +02:00
Eric Lippmann
4763b6b20a
lib/db: Allow to configure persistent connections
...
refs #9683
2015-09-07 16:15:04 +02:00
Eric Lippmann
44c19fc5e6
lib/db: Allow to create oracle (pdo_oci) connections
...
refs #9683
2015-09-07 16:14:11 +02:00
Eric Lippmann
a42c8d1f24
lib/db: Allow to create oci8 connections
...
refs #9683
2015-09-07 16:11:16 +02:00
Eric Lippmann
e34c50bc91
lib: Fix PHPDoc of DbConnection::$dbAdapter
2015-09-07 14:43:13 +02:00
Eric Lippmann
b6dc546fe5
lib: Fix PHPDoc of Filter::fromQueryString()
2015-09-07 13:21:48 +02:00
Eric Lippmann
cf917b59f8
lib: Fix PHPDoc of DbConnection::getDbApdater()
2015-09-03 16:20:29 +02:00
Eric Lippmann
e27d2e998b
monitoring: Fix grouping and ordering of the service when using display names
...
refs #9538
refs #9333
2015-08-25 16:13:34 +02:00
Eric Lippmann
c8790fad93
Merge branch 'bugfix/service-grid-display_name-9538' into bugfix/service-grid-grouping-postgres-9333
...
Conflicts:
library/Icinga/Data/PivotTable.php
modules/monitoring/application/controllers/ListController.php
2015-08-25 15:51:20 +02:00
Eric Lippmann
403f7016ca
lib: Allow to set axis header columns in the pivot table
...
PivotTable::toArray() now returns the pivot data and the pivot header.
refs #9538
2015-08-25 14:46:23 +02:00
Eric Lippmann
f2f1e12b8e
Let PivotTable implement Sortable
...
refs #9333
2015-08-18 14:17:07 +02:00
Eric Lippmann
d1f9c5ff0d
Don't call setUseSubqueryCount() in the PivotTable
...
The query implementation handles this automatically.
refs #9333
2015-08-18 13:42:06 +02:00
Eric Lippmann
d0f2887367
Fix PHPDoc indents in the PivotTable
...
refs #9333
2015-08-18 13:35:50 +02:00
Eric Lippmann
0a7a8d377e
Remove unnecessary import in the PivotTable
...
refs #9333
2015-08-18 13:34:14 +02:00
Johannes Meyer
bcdb670f5c
Introduce interface Icinga\Data\FilterColumns
...
refs #9029
2015-08-13 14:21:11 +02:00
Eric Lippmann
b0a75dd89b
lib: Fix PHPDoc in ConfigObject
2015-08-10 13:25:08 +02:00
Johannes Meyer
0695d5900c
Merge branch 'master' into feature/less-costly-count-queries-for-history-views-8615
2015-08-06 13:11:28 +02:00
Eric Lippmann
528382098e
db: Respect group by for count queries, really
...
Missed that Johannes introduced DbQuery::getGroup().
refs #9828
2015-08-06 10:46:40 +02:00
Johannes Meyer
7662545c2a
SimpleQuery: Provide a getter for the current iterator position
...
refs #8615
2015-08-06 09:39:23 +02:00
Johannes Meyer
a0d5509f19
DbQuery: Drop attribute $maxCount
...
It's not used anywhere and completely useless the way it's implemented.
2015-08-05 10:54:14 +02:00
Eric Lippmann
064e821383
lib: Fix wrong count for queries having a group by clause
...
fixes #9828
2015-08-04 16:25:34 +02:00
Johannes Meyer
9a0e47a3e1
SimpleQuery: Add method hasResult()
...
refs #9632
2015-08-03 14:49:33 +02:00
Johannes Meyer
dbc2f98053
SimpleQuery: Initialize self::$iteratorPosition as late as possible
...
refs #9632
2015-08-03 14:09:55 +02:00
Johannes Meyer
99c69cc461
SimpleQuery: Add support for peek aheads
...
refs #9661
2015-07-31 13:51:39 +02:00
Johannes Meyer
16e54d3987
DbQuery: Be less error-prone while calling array_search
2015-07-31 11:05:23 +02:00
Eric Lippmann
9060e8a034
lib: Only call Icinga::app()->getRequest() for getting the request outside of a controller
...
Saves a call to getFrontController().
refs #9660
2015-07-30 14:02:44 +02:00
Johannes Meyer
cdc2182430
Introduce interface SortRules
...
refs #6644
2015-07-28 11:40:27 +02:00
Matthias Jentsch
a14da1c558
Make sure to log inspection messages into message log too
...
refs #9641
2015-07-27 09:44:07 +02:00
Thomas Gelf
727a2d7141
Paginator: relax requirements to Paginatable
...
* we need no full query interface here
* introduced new interface "Paginatable"
fixes #9483
2015-07-23 13:48:49 +02:00
Matthias Jentsch
f4054d575b
Add Inspection API to db connection
...
refs #9641
2015-07-16 15:29:45 +02:00
Matthias Jentsch
6b8e5da76d
Move all assertion functions into the inspect functions
...
Reduce code duplication and add class Inspection
refs #9630
2015-07-16 12:21:11 +02:00
Matthias Jentsch
276aa43aa2
Upgrdae Inspection API again
...
Do not use InspectionException any more to reduce complexity of nested inspections, but keep error states
in the Inspection object itself.
refs #9630
2015-07-15 18:39:09 +02:00
Matthias Jentsch
6762ef053e
Upgrade Inspection API
...
Reduce code duplication and stateffullnes by using InspectionException to indicate that an error was thrown, and only using one inspect function.
refs #9630
2015-07-15 17:51:18 +02:00
Matthias Jentsch
6599940e6c
Introduce Interface for inspecting ldap connections
...
refs #9605
2015-07-14 12:30:16 +02:00
Johannes Meyer
cfd43f251e
Revert "Sortable: Allow to check for a particular sort rule"
...
This reverts commit ae21baa41e
.
2015-06-26 15:13:46 +02:00
Johannes Meyer
ae21baa41e
Sortable: Allow to check for a particular sort rule
2015-06-26 14:54:15 +02:00
Johannes Meyer
56c506c8af
SimpleQuery: Do not report to have a limit if there is none
2015-06-26 14:21:09 +02:00
Johannes Meyer
98b01207cf
Show intersecting ok-states as well in the default servicegrid view
...
fixes #9360
2015-06-24 14:37:07 +02:00
Johannes Meyer
9595809dfa
SimpleQuery: Deep clone the filter when cloning the query
2015-06-24 14:33:11 +02:00
Johannes Meyer
c3ad7b211a
Ldap\Connection: Rename to LdapConnection
...
refs #8954
2015-06-24 09:05:29 +02:00
Johannes Meyer
6d48de6cf5
DbConnection: Do not accept configuration for table prefixes
...
fixes #9418
2015-06-22 13:32:34 +02:00
Johannes Meyer
d5ae135415
DbQuery: Add select() method to access self::$select publicly
2015-06-19 14:05:12 +02:00
Johannes Meyer
fb9641fb3c
Controller: Validate restriction columns
2015-06-18 16:43:20 +02:00
Johannes Meyer
1169793213
IdoQuery: Add prototype for dynamic GROUP BY clauses
2015-06-18 09:36:04 +02:00
Johannes Meyer
386447b847
DbQuery: Add getter for GROUP BY clauses
...
Allows to override this in a child to provide group by clauses not
until they are actually required.
refs #9009
2015-06-18 09:29:58 +02:00
Johannes Meyer
b8efe314a0
DbQuery: Ignore wildcard only filters
...
This increases query performance vastly, since LIKE '%' comparisons
prevent the dbms from utilizing an index.
2015-06-15 13:59:46 +02:00