Skip to content

If user change any data type of any column in foreign table then column name "none" is displayed in SQL #6674

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

Closed
FaharAbbasRizvi opened this issue Aug 11, 2023 · 1 comment
Assignees
Milestone

Comments

@FaharAbbasRizvi
Copy link
Contributor

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. create the following SQL:
    CREATE FOREIGN DATA WRAPPER fdw1;
    CREATE SERVER fr
    FOREIGN DATA WRAPPER fdw1;
    CREATE USER MAPPING FOR postgres SERVER fr;
    CREATE FOREIGN TABLE IF NOT EXISTS public.tab1(
    abcd "char" NULL
    )
    SERVER fr;

  2. Now go into properties on tab1

  3. select column

  4. change the datatype to bit

  5. Go to SQL

  6. following SQL is displayed:

ALTER FOREIGN TABLE IF EXISTS public.tab1
RENAME COLUMN abcd TO None;

ALTER FOREIGN TABLE IF EXISTS public.tab1
ALTER COLUMN None DROP NOT NULL;

ALTER FOREIGN TABLE IF EXISTS public.tab1
ALTER COLUMN None TYPE bit;

ALTER FOREIGN TABLE IF EXISTS public.tab1
ALTER COLUMN None SET STATISTICS -1;

Expected behavior

the data type should be changed successfully in the foreign table

Screenshots

Screen Shot 2023-08-11 at 11 07 06 AM

Desktop (please complete the following information):

  • OS: [ALL]
  • Version: [7.5]
  • Mode: [All]
  • Package type: [ALL]

Additional context

Add any other context about the problem here.

@akshay-joshi akshay-joshi moved this to 🆕 New in Current Sprint (192) Aug 11, 2023
@akshay-joshi akshay-joshi moved this from 🆕 New to 🏗 In Progress in Current Sprint (192) Aug 11, 2023
@akshay-joshi akshay-joshi self-assigned this Aug 11, 2023
@yogeshmahajan-1903 yogeshmahajan-1903 moved this from 🏗 In Progress to In Review in Current Sprint (192) Sep 12, 2023
@khushboovashi khushboovashi moved this from In Review to In Testing in Current Sprint (192) Sep 26, 2023
@akshay-joshi akshay-joshi added this to the 7.8 milestone Sep 27, 2023
@akshay-joshi
Copy link
Contributor

Tested on snapshot build 2023-09-28

@akshay-joshi akshay-joshi moved this from In Testing to ✅ Done in Current Sprint (192) Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants