BUG: Insert with Union into Float Column Causes ErrorsLast reviewed: April 28, 1997Article ID: Q93554 |
The information in this article applies to:
SYMPTOMSAn insert with union into a float (not null) column will produce the error:
Updated or inserted row is bigger than maximum size (10 bytes) allowed for the table. (msg 511, level 16, state 2)"This only happens if the float value is generated from a division involving two float values. For example:
insert into ck_tab select 1.0/1.25 union select b from testbugThe table ck_tab is defined as:
create table ck_tab(a float NOT NULL)The table testbug is defined as:
create table testbug(b float NOT NULL)Furthermore, the problem does not occur if the float column is defined to accept NULLs.
CAUSESQL server does not correctly handle the maximum row size of float column in an insert into statement with union.
WORKAROUNDChange the table definition from NOT NULL to NULL.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2 for OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: Transact-SQL
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |