database errors when changing object tools
-
When we want to change object tools in our NetXMS installation (V1.2.14) we get database errors like:
[ERROR] SQL query failed (Query = "DELETE FROM object_tools_acl WHERE tool_id=?"): 08P01 ERROR: bind message supplies 9 parameters, but prepared statement "netxms_stmt_0x7f51d4056c40_1403626097" requires 1What can we do to fix it? Thanks in advance
-
Hi!
This bug already fixed in 1.2.15. It's not possible to fix it in 1.2.14 without code change. I can provide a patch for 1.2.14 if you are building from sources.
Best regards,
Victor -
-
Lines 736 and 763 in file src/server/core/objtools.cpp should be
DBBind(statment, 1, DB_SQLTYPE_INTEGER, dwToolId);instead of
DBBind(statment, bindID++, DB_SQLTYPE_INTEGER, dwToolId);Best regards,
Victor -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login