| Bug #36206 | INSERTs escape CURRENT_TIMESTAP, DEFAULT | ||
|---|---|---|---|
| Submitted: | 18 Apr 2008 13:14 | Modified: | 8 Dec 17:11 |
| Reporter: | Takatoshi Iwanaga | ||
| Status: | QA review | ||
| Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
| Version: | 5.0.19 | OS: | Microsoft Windows (XP Professional) |
| Assigned to: | Mike Lischke | Target Version: | WB52 |
| Tags: | inserts | ||
[18 Apr 2008 13:14]
Takatoshi Iwanaga
[2 May 2008 4:34]
Alfredo Kojima
the inserts editor was changed so that automatic quotes are no longer automatically added
[2 May 2008 17:28]
Alfredo Kojima
Added code to allow CURRENT_TIMESTAP, DEFAULT explicitly
[5 May 2008 15:44]
Johannes Taxacher
entering DEFAULT and CURRENT_TIMESTAMP as values is possible now (note that Quotes aren't added automatically any longer).
[30 Jan 0:02]
Andrew Collington
As of what version is this fixed? Trying similar now with the inserts tab to populate rows which include a datetime field. I'm trying to use NOW() but it's always inserted as quoted. I'm using version 5.0.28 SE (rev 3356) on XP Pro OS.
[30 Jan 0:07]
Andrew Collington
Sorry; I missed the 'explicitly' on Alfredo's 2nd May comment. As it's only for those two values (DEFAULT and CURRENT_TIMESTAMP), could you perhaps make it more expansive to cover the other MySQL functions such as NOW()? Perhaps a right-click contextual menu option to insert a language construct (cascading down to the various methods/reserved words)? That way you could keep the standard typing as being auto-quoted.
[26 Aug 10:03]
Patrik Lermon
I am using Workbench 5.1.17 SE (commercial), and I cannot add CURRENT_TIMESTAMP as a default value for a field of type TIMESTAMP, because it gets quoted like this: 'CURRENT_TIMESTAMP' - and MySQL does not accept this. Either you need to implement all reserved words, or just somehow allow the user to choose whether quoting should be used or not.
[16 Oct 9:34]
Susanne Ebrecht
Bug #36250 is marked as duplicate of this bug here.
[30 Nov 17:31]
Susanne Ebrecht
Create a simple table in diagram. Two columns: i integer NN Default 5 t timestamp NN Default current_timestamp Open INSERT editor ... Now try to add the word DEFAULT in column i. Also try it in column t. Both is not working in 5.2.8.
[8 Dec 17:11]
Mike Lischke
Fixed in 5.2.
