mysql - Parameter '?' must be defined -
i've made simple asp.net app managing mysql database. i've been using visual studio 2013 , auto-generated elements such detailsview, gridview etc. app works fine locally (including queries mysql server site's hosted), when try app on webhotel error:
parameter '?' must defined
i've been in contact customer support claims, it's not serverproblem rather scriptproblem (in spite of me saying works fine locally).
an example sqldatasource in .aspx page looks this:
insertcommand="insert categories (overname, categoryid) values (?, ?)" <insertparameters> <asp:parameter name="overname" type="string" /> <asp:parameter name="categoryid" type="int32" /> </insertparameters>
according mysql's own bug-site, issue in earlier versions of mysql connector:
http://bugs.mysql.com/bug.php?id=66060
however we're using version 6.8.3. other seemingly viable solution i've found
but no avail. also, seems
any , appreciated, because @ wit's end. thank you
i think it's line causing issues..
insertcommand="insert categories (overname, categoryid) values (?, ?)"
it should like..
insertcommand="insert categories (overname, categoryid) values (?overname, ?categoryid)"
i believe need fields listed in there. haven't used mysql in few months how use , how in sql.
hope helps.
Comments
Post a Comment