Giter Site home page Giter Site logo

Comments (6)

surajkharage19 avatar surajkharage19 commented on August 13, 2024

Hi @DavidBuch1,

You are talking about this issue - #202?

from mysql_fdw.

DavidBuch1 avatar DavidBuch1 commented on August 13, 2024

hi. Yes.. looks similar to my issue, but I cant see how to get past it.
note, we are running on ubuntu 22.04, so this is not a windows or mac issue.
I have tried to force mariadb to store lowercase, but it doesnt take the setting, and seems to alwasy remain at 0

from mysql_fdw.

surajkharage19 avatar surajkharage19 commented on August 13, 2024

Okay. Can you please just share a simple reproducible test case from your end? How do you create a mixed case table on MySQL, value of lower_case_table_names, and IMPORT FOREIGN SCHEMA command tried at your end?

from mysql_fdw.

DavidBuch1 avatar DavidBuch1 commented on August 13, 2024

Hi
Sure:
SHOW GLOBAL VARIABLES LIKE 'lower_case_table_names'; value 0
setting in conf files
[mysqld]
lower_case_table_names=2

Mysql/Mariadb tables
CREATE TABLE debugLog (
id int(11) NOT NULL AUTO_INCREMENT,
routine varchar(255) DEFAULT NULL,
line int(11) DEFAULT NULL,
debugMsg varchar(1000) DEFAULT NULL,
isError int(11) DEFAULT NULL,
createdDate datetime DEFAULT current_timestamp(),
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=4265468 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

and from postgres
IMPORT FOREIGN SCHEMA xld
FROM SERVER xld_bridge
INTO imports;

all the lowercase tables import, but examples like the above dont.

its not practical to make them all lowercase, as there so many dependencies

from mysql_fdw.

surajkharage19 avatar surajkharage19 commented on August 13, 2024

Thanks for sharing the test case.

I tried the same at my end and it is working fine. I am using MySQL 8 at my end.

mysql> CREATE TABLE debugLog (
    -> id int(11) NOT NULL AUTO_INCREMENT,
    -> routine varchar(255) DEFAULT NULL,
    -> line int(11) DEFAULT NULL,
    -> debugMsg varchar(1000) DEFAULT NULL,
    -> isError int(11) DEFAULT NULL,
    -> createdDate datetime DEFAULT current_timestamp(),
    -> PRIMARY KEY (id)
    -> ) ENGINE=InnoDB AUTO_INCREMENT=4265468 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
Query OK, 0 rows affected, 3 warnings (0.01 sec)

mysql> 
mysql> 
mysql> SHOW GLOBAL VARIABLES LIKE 'lower_case_table_names';
+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+
| lower_case_table_names | 0     |
+------------------------+-------+
1 row in set (0.00 sec)

Postgres:

edb@44896=#IMPORT FOREIGN SCHEMA s2 FROM SERVER mysql_server into s2;
IMPORT FOREIGN SCHEMA
edb@44896=#
edb@44896=#\d s2.*
                               Foreign table "s2.debugLog"
   Column    |            Type             | Collation | Nullable | Default | FDW options 
-------------+-----------------------------+-----------+----------+---------+-------------
 id          | integer                     |           | not null |         | 
 routine     | character varying(255)      |           |          |         | 
 line        | integer                     |           |          |         | 
 debugMsg    | character varying(1000)     |           |          |         | 
 isError     | integer                     |           |          |         | 
 createdDate | timestamp without time zone |           |          |         | 
Server: mysql_server
FDW options: (dbname 's2', table_name 'debugLog')

Can you please verify the same at your end once? From your update, I can see that you are using mariadb, if possible test the same on MySQL just to rule out the possibility of mariadb specific issue.

from mysql_fdw.

DavidBuch1 avatar DavidBuch1 commented on August 13, 2024

from mysql_fdw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.