mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
4cb3072356
Added a second internal variable $mysql_errname This is set the same way as $mysql_errno Can be used like "if ($mysql_errname == ER_NO_SUCH_TABLE)...."
12 lines
1 KiB
Text
12 lines
1 KiB
Text
CREATE TABLE `t_bug21476` (
|
|
`ID_BOARD` smallint(5) unsigned NOT NULL default '0',
|
|
`ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
|
|
`logTime` int(10) unsigned NOT NULL default '0',
|
|
`ID_MSG` mediumint(8) unsigned NOT NULL default '0',
|
|
PRIMARY KEY (`ID_MEMBER`,`ID_BOARD`),
|
|
KEY `logTime` (`logTime`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COLLATE=cp1251_bulgarian_ci;
|
|
INSERT INTO `t_bug21476` VALUES (2,2,1154870939,0),(1,2,1154870957,0),(2,183,1154941362,0),(2,84,1154904301,0),(1,84,1154905867,0),(2,13,1154947484,10271),(3,84,1154880549,0),(1,6,1154892183,0),(2,25,1154947581,10271),(3,25,1154904760,0),(1,25,1154947373,10271),(1,179,1154899992,0),(2,179,1154899410,0),(5,25,1154901666,0),(2,329,1154902026,0),(3,329,1154902040,0),(1,329,1154902058,0),(1,13,1154930841,0),(3,85,1154904987,0),(1,183,1154929665,0),(3,13,1154931268,0),(1,85,1154936888,0),(1,169,1154937959,0),(2,169,1154941717,0),(3,183,1154939810,0),(3,169,1154941734,0);
|
|
Assertion: mysql_errname ER_STACK_OVERRUN_NEED_MORE == ER_STACK_OVERRUN_NEED_MORE
|
|
DROP TABLE `t_bug21476`;
|
|
End of 5.0 tests.
|