GithubHelp home page GithubHelp logo

Comments (11)

ansgarbecker avatar ansgarbecker commented on September 25, 2024 1

Quite dangerous, this "Use All (selected) columns" button. You probably update more than one row then. Worst case would be you overwrite an important setting with that, and you even don't know you did it.

Is that "Use All columns" really something HeidiSQL should provide?

from heidisql.

ansgarbecker avatar ansgarbecker commented on September 25, 2024

This is already possible. The only requirement is that HeidiSQL is able to determine the table name of the result, and that all columns derive from a single table.

from heidisql.

Eddcapone avatar Eddcapone commented on September 25, 2024

@ansgarbecker I can't confirm it. It knows the name but I still can't change data:

image

from heidisql.

ansgarbecker avatar ansgarbecker commented on September 25, 2024

Ok, then please select the primary key column(s) as well.

from heidisql.

Eddcapone avatar Eddcapone commented on September 25, 2024

Yes, that workaround works. But it would consume less time, if I could just change it without having to figure out the primary key column(s) first and changing my query accordingly. Another problem is, that people need to have that knowledge, otherwise they will think it is a bug / missing feature, like me...

from heidisql.

ansgarbecker avatar ansgarbecker commented on September 25, 2024

You say in DBeaver it works. How does it work there in such a situation? How does an UPDATE look like when you edit a value there?

from heidisql.

Eddcapone avatar Eddcapone commented on September 25, 2024

Well, I just execute my SELECT e.g.

SELECT path, value FROM
core_config_data 

Then I can simply edit the entries and click on save at the end.

from heidisql.

ansgarbecker avatar ansgarbecker commented on September 25, 2024

My question was how the UPDATE query looks like, after you edited an entry. Can you see that somewhere in the app, perhaps in a log panel?
I can only tell you with these both column names, the UPDATE would break your data, as this Magento table has additional columns in its unique key which are missing here.

from heidisql.

Eddcapone avatar Eddcapone commented on September 25, 2024

I see. Initially this window popped up:

image

I clicked on Use All Columns. Then after saving it executed these queries:

UPDATE company_2024.core_config_data
    SET value='http://company.vm/xy'
WHERE `path`='web/secure/base_url' AND value='http://company.vm/x'

And then a SELECT afterwards:

SELECT path, value FROM core_config_data WHERE (`path` = 'web/secure/base_url') AND (value = 'http://company.vm/xy')

from heidisql.

Eddcapone avatar Eddcapone commented on September 25, 2024

Im not sure about that. Maybe you could name the button "Use All Colums (use at your own risk)" or you omit it completly.

from heidisql.

ansgarbecker avatar ansgarbecker commented on September 25, 2024

I'm against such an addition. It leads to data loss. In my experience, even if a dialog says "use at your own risk", it's something many users don't understand and/or don't read.

But I just made the warning message visible in the log in such cases:

grafik

from heidisql.

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.