Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other schema #271

Open
wants to merge 53 commits into
base: 2.0-dev
Choose a base branch
from
Open

Other schema #271

wants to merge 53 commits into from

Conversation

softarius
Copy link

Pull Request for Issue #

Summary of Changes

Support other then default schema for columns getting

Testing Instructions

In database:
create schema foo;
create table foo.test (id integer, name varchar(10));

In Joomla:
Call getTableColumns method for this table 'foo.test'.

Documentation Changes Required

Hackwar and others added 30 commits January 31, 2023 20:56
…into 3.x-dev

# Conflicts:
#	.drone.jsonnet
#	.drone.yml
#	Tests/AbstractDatabaseDriverTestCase.php
#	Tests/Mysql/MysqlDriverTest.php
#	Tests/Mysqli/MysqliDriverTest.php
#	Tests/Pgsql/PgsqlDriverTest.php
#	Tests/Sqlite/SqliteDriverTest.php
#	Tests/Sqlsrv/SqlsrvDriverTest.php
#	ruleset.xml
#	src/Command/ExportCommand.php
#	src/DatabaseDriver.php
#	src/DatabaseExporter.php
#	src/DatabaseImporter.php
#	src/Mysql/MysqlDriver.php
#	src/Mysql/MysqlImporter.php
#	src/Mysqli/MysqliDriver.php
#	src/Mysqli/MysqliImporter.php
#	src/Pgsql/PgsqlDriver.php
#	src/Sqlite/SqliteDriver.php
@richard67
Copy link
Contributor

richard67 commented Aug 15, 2024

As far as I can see by review, this PR will not work if either the schema name or the table name or both contain a dot, which is quite valid when the name which has a dot is name quoted. E.g. "my.schema"."my.table" is a valid schema, table combination.

Another question is why does this PR add that functionality only to the getTableColumns method and not to any other method which takes a table name as argument.

So in my opinion this PR should not be merged as it is. But other opinions are welcome.

alikon and others added 7 commits August 19, 2024 15:09
Extract host and port number or socket name from host option for mysql and pgsql drivers
…mber

[3.x] Allow to specify port number or UNIX socket in host option also for MySQL (PDO) and PostgreSQL (PDO)
…punit-appveyor-sql2017

[3.x] Use directory Tests/Sqlsrv in phpunit.appveyor_sql2017.xml.dist to fix failing AppVeyor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants