<?xml version="1.0" encoding="utf-8"?>
<bug><id>27713</id><link>http://bugs.mysql.com/bug.php?id=27713</link><status>Verified</status><category>Server: Views</category><sdesc>INSERTs fail for empty table using WITH_CHECK_OPTION</sdesc><ldesc>Reported as Debian bug on http://bugs.debian.org/418248

--------------------------------------------------------------------
From: Stephan Peijnik &lt;sp@sp.or.at&gt;

When trying to INSERT into a view using &quot;WITH_CHECK_OPTION&quot; fails while the view is empty.
INSERT&#039;ing also fails after a row has been inserted into the underlying table and works once
one has inserted a row into the underlying table and SELECTs from the view.

More information including error messages and an SQL dump can be found at 
http://paste.lisp.org/display/39398/.

I&#039;m unsure about if this is really a bug, but the behaviour (having to SELECT before INSERT works)
makes me believe it is one.

Version: 5.0.38
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686
---------------------------------------------------------------------

I ask the user for a simpler test case.

bye,

-christian-</ldesc><reporter>16744</reporter><submitted>1176117478</submitted><modified>1176190713</modified><version>5.0.38, 5.1, 5.2</version><os>Any</os><cpu_arch>Any</cpu_arch><severity>S3 (Non-critical)</severity></bug>