Open lmq2582609 opened 1 day ago
Today I changed a table with a marker bit type, and a new error occurred during the query. error:unsupported datatype: BIT database is mysql,table structure:
CREATE TABLE `m_config` (
`id` bigint NOT NULL AUTO_INCREMENT,
`config_id` bigint NOT NULL COMMENT '',
`config_name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '',
`config_key` varchar(100) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '',
`config_value` varchar(500) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '',
`description` varchar(512) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '',
`status` tinyint DEFAULT '1' COMMENT '',
`create_id` bigint DEFAULT '0' COMMENT '',
`create_time` datetime(6) DEFAULT NULL COMMENT '',
`update_id` bigint DEFAULT '0' COMMENT '',
`update_time` datetime(6) DEFAULT NULL COMMENT '',
`deleted` bit(1) DEFAULT b'1' COMMENT '0deleted 1normal',
`version` int DEFAULT '0' COMMENT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='params config'
select statement:
SELECT * FROM m_config
my code:
let db = await Database.load(`mysql://${username}:${password}@${host}:${port}/${database}`)
let sql = `SELECT * FROM ${database}.${connName}`
console.info(‘sql', sql)
let res = await db.select(sql)
Describe the bug
Here's my code
error:unsupported datatype: BINARY
But when I use:SELECT TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES ........ Returns correctly when * is not used
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response