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
- SQL Scheduler and Reporting Tool
- 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
- Sitemap
Most popular FAQs 
- I get error 1130 "Host is not allowed to ... (169314 views)
- Error no. 2003: Can't connect... (86270 views)
- SQLyog Version History (63952 views)
- Error no. 1045: "Connection denied..." (61347 views)
- Error no. 1251: "Client does not support authentication..." (58317 views)
- Error No. 2005: Unknown MySQL server host... (50192 views)
- What is HTTP-tunneling? (42282 views)
- What Is SSH and SSH-tunneling? (38071 views)
- Can I use SQLyog with the WINE Windows emulator ... (34944 views)
- Why are Stored Procedures not created when I import ... (34267 views)
Latest FAQs 
- SQLyog Version History (2012-01-26 08:20)
- SQLyog is a client for the MySQL server - ... (2011-11-04 04:48)
- I get error 1130 "Host is not allowed to ... (2011-11-01 05:21)
- Problems on Ubuntu 11.x (2011-10-29 13:02)
- Problems creating a functional DSN on 64 bit Windows. ... (2011-09-15 14:34)
Sticky FAQs
Managing your MySQL Database Systems » Data Types and Storage Engines
Why are my BIT datatypes displayed as squares?
You experience that BIT datatypes that previously displayed as "0" or "1" (and maybe even any numerical value between "-128" and "127") in SQLyog DATA and RESULT pane are displayed as squares when connecting to a MySQL version 5 server.
The explanation is that the meaning of the BIT type has changed with MySQL version 5. Changes were implemented for MyISAM tables with MYSQL version 5.0.3 and other table types with 5.0.5.
The MySQL docs at http://dev.mysql.com/doc/mysql/en/numeric-type-overview.html now say about the BIT(M) type:
- A bit-field type. M indicates the number of bits per value, from 1 to 64. The default is 1 if M is omitted.
that means that the BIT type as of MySQL 5.0.3/5.0.5 can't be displayed in text since is is purely binary data. It is not a string type with an associated character set. And it is not a "decimal-numerical" either (actually MySQL list the BIT type among numerical types, but it is only to be considered as a 'binary-numerical'. To display a BIT(3) as for instance "101" or the decimal representation of binary "101" (that is "9") would be very confusing since it is "one-zero-one" and not AT ALL neither "one-hundred-and-one" nor "nine" !).
The square is how non-printable data is shown in SQLyog...
In near future we will let the BLOB-viewer open BIT types from where they can be edited in binary or hexadecimal mode.
Please note too that the meaning of the BOOL data type (that is still converted to a TINYINT(1) by the MySQL server like BIT was before 5.0.3) will change with a future MySQL version as well. So for backward compatibility use a TINYINT(1) as a boolean type. For the future and for compatibility with STANDARD SQL you may consider using the BOOL type. But don't assign no other value than "0" or "1" to it, if you do that! It will work now, but no guarantees for the future!
Tags: -
Related entries:
- Buying and Licensing SQLyog
- SQLyog Version History
- What kind of ODBC databases are supported by SQLyog Import External Data Tool?
- What is and what is not imported by the SQLyog Import External Data Tool?
- Plans for future versions of SQLyog
Last update: 2005-09-21 08:26
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ