Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

PostgreSQL and MySQL compatibility. #15

Merged
merged 1 commit into from
Jul 30, 2014
Merged

PostgreSQL and MySQL compatibility. #15

merged 1 commit into from
Jul 30, 2014

Conversation

fbergkemper
Copy link
Contributor

Table- and column-names are now passed into the SelectObject by a helper function, which
converts the string to lower-case e.g. for PostgreSQL or leaves it camel-case for MySQL,
so we don't need to repeat most of the code for different databases, as identifiers might
be different depending on which database you use. This is a workaround for an inconsistence
in the Bareos installation scripts relating the creation of needed database tables for
the catalogue. The helper function strdbcompat() might also be extended in future for Oracle
databases, where identifiers are handled upper-case by default and possible other databases.

Table- and column-names are now passed into the SelectObject by a helper function, which
converts the string to lower-case e.g. for PostgreSQL or leaves it camel-case for MySQL,
so we don't need to repeat most of the code for different databases, as identifiers might
be different depending on which database you use. This is a workaround for an inconsistence
in the Bareos installation scripts relating the creation of needed database tables for
the catalogue. The helper function strdbcompat() might also be extended in future for Oracle
databases, where identifiers are handled upper-case by default and possible other databases.
fbergkemper pushed a commit that referenced this pull request Jul 30, 2014
PostgreSQL and MySQL compatibility.
@fbergkemper fbergkemper merged commit 0319f95 into bareos:master Jul 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant