I am getting this error in my onload event although it looks like it completed successfully. This is the code I have where the error is generated:
onLoad
//************************************************** **************************************************
//* GET FILE FIELD DATA *
//************************************************** **************************************************
sc_lookup(rsData, “CALL stProc_GetCategiryID(’{Field_Category}’)”, “conn_mysql_dbrecipesupporttables”);
{Field_LinkCategory} = {rsData[0][0]};
sc_lookup(rsData, “CALL stProc_GetSubCategiries({Field_LinkCategory})”, “conn_mysql_dbrecipesupporttables”);
{Field_SubCategory} = {rsData[0][0]};
And the full error message:
(pdo-mysql): CALL stProc_GetSubCategiries(1 ) [HR][/HR]2014: Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
ADOConnection._Execute(CALL stProc_GetSubCategiries(1 ), false) % line 1098, file: adodb.inc.php ADOConnection.Execute(CALL stProc_GetSubCategiries(1 )) % line 4613, file: RecipeEditorProperties_Editor_apl.php RecipeEditorProperties_Editor_apl.nm_proc_onload() % line 5732, file: RecipeEditorProperties_Editor_apl.php RecipeEditorProperties_Editor_apl.nm_acessa_banco( ) % line 1600, file: RecipeEditorProperties_Editor_apl.php RecipeEditorProperties_Editor_apl.controle() % line 2083, file: index.php Now for the Procedure I call it is this: BEGIN
SELECT SubCategory
FROM tbllistrecipesubcategories
WHERE CodeSequence = iLinkCategory;
END
I prefer using Stored Procedures because then there is much less code in the events. And if I call the Procedures from another event then the coding is reduced.
I notice the “,false” above. Does this mean that I need an OUT parameter? How would I write it because the SubCategories would be a string array?