MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: Preparse Query Rewrite Plugin DLL
Posted by: Georgi Kodinov
Date: June 28, 2016 02:12AM

Hello,

By the looks of it you seem to be trying to use server code in a way that a plugin is not supposed to be using it.
The most common reason for that is defining MYSQL_SERVER inside your plugin code.
Some of the headers are shared between the plugins and the server code, but they do different things (as they are supposed to) depending on whether they're sourced as part of the server or the plugin code.
The distinction is done through the above define MYSQL_SERVER.
The performance schema headers are a typical example of that. They compile the instrumentation calls differently depending on whether they're in a plugin or in the server code.

So, bottom line: don't define MYSQL_SERVER in your plugin. If you do you're on your own. It may work on some OSes and on some compiler versions. But you'll need to always compile your plugin with each server update from exactly the same codebase as the hosting server binary.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Preparse Query Rewrite Plugin DLL
380
June 28, 2016 02:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.