Git Product home page Git Product logo

Comments (5)

wyhaya avatar wyhaya commented on June 4, 2024 2

@kodaicoder @wqweto
We have just released version 0.6, and this error has been fixed. Can you please try again?

from dataflare.

wqweto avatar wqweto commented on June 4, 2024 2

It does work ok now!

Btw, on browsing tables the arrow in the cells for following foreign key is a nice touch :-))

from dataflare.

wyhaya avatar wyhaya commented on June 4, 2024 1

@kodaicoder Thanks.

Dataflare gets the schema and table through this SQL, what is certain is that the problem comes from this piece of SQL, maybe a compatibility issue, I'll look into it.

SELECT
    c.schema_name,
    t.table_name
FROM
    information_schema.schemata as c
    LEFT JOIN information_schema.tables as t ON
        t.TABLE_TYPE = 'BASE TABLE' AND
        t.table_schema = c.schema_name
ORDER BY c.schema_name, t.table_name;

from dataflare.

kodaicoder avatar kodaicoder commented on June 4, 2024 1

I has trying change the code you mention into all upper case like this

SELECT
    c.SCHEMA_NAME,
    t.TABLE_NAME
FROM
    INFORMATION_SCHEMA.SCHEMATA as c
    LEFT JOIN INFORMATION_SCHEMA.TABLES as t ON
        t.TABLE_TYPE = 'BASE TABLE' AND
        t.TABLE_SCHEMA = c.SCHEMA_NAME
ORDER BY c.SCHEMA_NAME, t.TABLE_NAME;

and it working good
BTW I don't know if it will affected and cause error on any other MSSQL version or other SQL tools

from dataflare.

wqweto avatar wqweto commented on June 4, 2024 1

I have the same problem on a SQL Server host with case-sensitive collation.

INFORMATION_SCHEMA views (and columns) are all UPPER-CASE named by design as described in every RDBMS documentation and not surprisingly writing these queries in lower-case can lead to compatibility problems.

from dataflare.

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.