Please note: If this FAQ s empty you must choose English language from the drop-down-box below. Only English content is available as of now!
Navigation
- FAQ Home
- All categories
- About Webyog support and about this FAQ
- About the SQLyog program

- Connection issues

- Using the GUI
- Managing your MySQL Database Systems
- Database Schema Synchronization
- MySQL DATA synchronization
- Notification Services
- Importing external data
- Backup/Restore
- SQLyog Job Agent (SJA)

- Working with Views, Stored Procedures and Triggers
- Character Set and Localization Issues
- MySQL bugs that affect SQLyog
- Questions on Open Source and Compiling
- Instant Response
- Sitemap
Most popular FAQs 
- I get error 1130 "Host is not allowed to ... (115380 views)
- Error no. 2003: Can't connect... (52096 views)
- Error no. 1251: "Client does not support authentication..." (48093 views)
- Error no. 1045: "Connection denied..." (41340 views)
- SQLyog Version History (39954 views)
- What is HTTP-tunneling? (29291 views)
- Error No. 2005: Unknown MySQL server host... (28363 views)
- What Is SSH and SSH-tunneling? (25494 views)
- Why are Stored Procedures not created when I import ... (23460 views)
- Do I need PHP to use SQLyog with MySQL? ... (21519 views)
Latest FAQs 
- SQLyog Version History (2010-03-09 03:20)
- SQLyog is a client for the MySQL server - ... (2009-09-11 07:48)
- Can I use SQLyog with the various SQL-modes available ... (2009-08-20 08:02)
- Failed dependency for libstdc++.so.5 error (2009-08-13 11:22)
- Wrong results are returned for FOUND_ROWS(). (2009-08-12 06:31)
Managing your MySQL Database Systems » Data Types and Storage Engines
Tables with Floating Point Datatypes Fail to Update
Floating Point datatypes in MySQL are FLOAT, DOUBLE and (before MySQL 5.03) DECIMAL.
Those datatypes are not stored as exact values inside computer architecture. What you can see on the screen usually is not the exact value of the number. More details in MySQL documentation here:
http://dev.mysql.com/doc/refman/5.0/en/problems-with-float.html
Due to this there are restrictions in working with tables having such types in SQLyog.
1) If table having such column does not have a Primary Key updation of rows will likely fail from both the SQLyog DATA and RESULT tab
2) If table having such column uses that column for defining the PK then also updation of rows will likely fail from both the SQLyog DATA and RESULT tab
3) Also if table has such column and it is NOT used for the definition of the PK, updation from the RESULT tab may also fail if the SELECT query used to populate that RESULT tab does not contain all columns of the PK.
The explaination is that when updating SQLyog will generate an SQL statement like,
UPDATE mytable SET ... WHERE {where condition}
Whenever possible SQLyog will use the PK in the WHERE statement (...WHERE pkcolumn = some_value). If this is not possible SQLyog will generate a where_condition matching (and logically AND'ing) all columns in the result tab (...WHERE 1stcolumn = some_value AND 2ndcolumn = some_other_value etc.). The 2nd statment here will likely fail to match the value as it is stored on the server for floating point types. And even the 1st statement also will if pk_column is a Floating Point datatype for the same reason.
When using Floating Point datatypes there should always be a PK based on non-floating column(s) and the PK-column(s) should be included in every SELECT generating a result set used for updating the table.
Tags: -
Related entries:
- Welcome to the Webyog FAQ
- SQLyog Version History
- What kind of ODBC databases are supported by SQLyog Import External Data Tool?
- Can I perform "incremental import" with the SQLyog Import External Data Tool?
- Error messages
Last update: 2008-07-24 07:44
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ