【发布时间】:2011-02-01 07:04:03
【问题描述】:
我正在使用 MySQL 5.5,并将其与我的 ASP.net 应用程序链接。
我添加了一个数据集以在 MySQL 存储过程中链接我的应用程序!!!
问题是当我调用任何包含 BOOLEAN 的存储过程时:
CREATE DEFINER=`root`@`localhost` PROCEDURE `SpCatDetailsDML`(
ParDetDescription TEXT,
ParDetDescriptionAR TEXT,
ParPrice INT,
ParCreatedOn DATETIME,
ParDisplayOrder INT,
ParAllowDisplay BOOLEAN,
ParPictureID BIGINT,
ParShowTypeID BIGINT
)
BEGIN-- INSERT --
INSERT INTO cms.tbcatdetails(CatID,CustomerID,DetTitle,DetTitleAR,ShoertDesc,ShoertDescAr,DetDescription,
DetDescriptionAR,Price,CreatedOn,DisplayOrder,AllowDisplay,PictureID,ShowTypeID)
VALUES (ParCatID,ParCustomerID,ParDetTitle,ParDetTitleAR,ParShoertDesc,ParShoertDescAr,ParDetDescription,
ParDetDescriptionAR,ParPrice,ParCreatedOn,ParDisplayOrder,ParAllowDisplay,ParPictureID,ParShowTypeID);
END
当我将此存储过程添加到我的数据集时,它会向我显示一个警告,因为 ParAllowDisplay 数据类型是布尔值!!
有什么建议吗???
【问题讨论】: