VS2005 DataSet Designer and MySQL Functions
Posted: Fri 06 Jul 2007 20:15
Hello everyone, I'm having a little problem using the VS2005 DataSet designer with MySQL functions.
Let's say I have defined the following MySQL function:
Now, I go to my DataSet designer in VS2005, and attempt to add the function to the auto-generated TableAdapter:
However, when I save the dataset, I notice that the return value of function is of type string, when it should be double.
Is there something I'm doing wrong here?
Sincerely,
bunton
Let's say I have defined the following MySQL function:
Code: Select all
create function ProductFunc(double num1, double num2) returns double
begin
return num1 * num2;
end
- 1) Right-click on table adapter, select Add Query
2) Select Use existing stored procedure
3) Select ProductFunc from the dropdown provided
However, when I save the dataset, I notice that the return value of function is of type string, when it should be double.
Is there something I'm doing wrong here?
Sincerely,
bunton