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

Foreign server name quoting during IMPORT FOREIGN SCHEMA #31

Open
mkgrgis opened this issue Dec 29, 2022 · 1 comment
Open

Foreign server name quoting during IMPORT FOREIGN SCHEMA #31

mkgrgis opened this issue Dec 29, 2022 · 1 comment

Comments

@mkgrgis
Copy link
Contributor

mkgrgis commented Dec 29, 2022

  • Firebird_fdw 1.3.0
  • PostgreSQL 14

The name of server is "fb テスト".
Console output after set client_min_messages='debug3';

DEBUG:  CREATE FOREIGN TABLE fbTest."ab" (
	AB INTEGER,
	"Ab" INTEGER,
	"aB" INTEGER OPTIONS (quote_identifier 'true'),
	"ab" INTEGER OPTIONS (quote_identifier 'true'),
	"c" BOOLEAN OPTIONS (quote_identifier 'true')
) SERVER fb テスト
OPTIONS(
	quote_identifier 'true'
)
DEBUG:  entering function fb_xact_callback
DEBUG:  closing remote transaction on connection 0x563c60e00a10
DEBUG:  ROLLBACK
DEBUG:  leaving fb_xact_callback()
ERROR: syntax (near: "テスト")
行 7: ) SERVER fb テスト
                  ^
QUERY:  CREATE FOREIGN TABLE fbTest.AB (
	AB INTEGER,
	"Ab" INTEGER,
	"aB" INTEGER OPTIONS (quote_identifier 'true'),
	"ab" INTEGER OPTIONS (quote_identifier 'true'),
	"c" BOOLEAN OPTIONS (quote_identifier 'true')
) SERVER fb テスト
@mkgrgis
Copy link
Contributor Author

mkgrgis commented Jan 2, 2023

Fixed by #37

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

No branches or pull requests

1 participant