[MDEV-14025] Bug with virtual field Created: 2017-10-07  Updated: 2017-11-13

Status: Open
Project: MariaDB Server
Component/s: Virtual Columns
Affects Version/s: 10.2.6, 10.2.9
Fix Version/s: None

Type: Bug Priority: Major
Reporter: BENLAGHA Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Windows


Attachments: JPEG File Bug Virtual.jpg     File CIRTA-HOME.err     File my.ini     PNG File screenshot-1.png    

 Description   

Bug if use select * from table and one of fields is virtual column.



 Comments   
Comment by Elena Stepanova [ 2017-10-07 ]

Please copy-paste the whole error output from the error log, run and paste the output of

SHOW CREATE TABLE promotions;
SHOW INDEX IN promotions;

and attach your cnf file(s).

Comment by BENLAGHA [ 2017-10-07 ]

CREATE TABLE `promotions` (
`code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`libelle` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`fam_client` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`fam_article` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`codeart` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`codeclient` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
`remise` double NOT NULL DEFAULT 0,
`debut` date NOT NULL DEFAULT '0000-00-00',
`fin` date NOT NULL DEFAULT '0000-00-00',
`bloquer` enum('Non','Oui') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Non',
`qte` double NOT NULL DEFAULT 100000000000,
`vendu` double NOT NULL DEFAULT 0,
`prix` double NOT NULL DEFAULT 0,
`codebar` varchar(39) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`demande_confirmation` tinyint(1) NOT NULL DEFAULT 0,
`active` tinyint(1) GENERATED ALWAYS AS (if(curdate() between `debut` and `fin` and `bloquer` = 'Non' and (`vendu` < `qte` or `qte` = 0),1,0)) VIRTUAL,
PRIMARY KEY (`code`),
KEY `codebar` (`codebar`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

Comment by BENLAGHA [ 2017-10-07 ]

Comment by Elena Stepanova [ 2017-10-07 ]

Thanks. The request for your cnf/ini files still applies.

Comment by BENLAGHA [ 2017-10-09 ]

i have send you my.ini file

Comment by Elena Stepanova [ 2017-10-11 ]

cirtasoft,

Thank you.
Has it been happening regularly?
Does the table get updated frequently? To your knowledge, do crashes anyhow correlate with table updates?
You've specified 10.2.9 also as an affected version, I assume it has happened there at least once (both occurrences in the log are from 10.2.6). Could you please also attach the log from 10.2.9 crash, and in general, as many examples as possible – it can help us to find similarities.
If you have a minidump from any of the crashes, please send it as well. To generate minidumps upon a crash, please add core-file option to the server config file.

Comment by BENLAGHA [ 2017-10-16 ]

the problem is in this two versions.

but is only i use with select * from table in DBGrid
and use other DB Query to read value

Generated at Thu Feb 08 08:10:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.