Categories: MySQLDevelopment | Contributing

Creating a Patch


Contents

[edit] Identify the need

Before submitting a patch, you have to make sure that it is needed. It will save everybody's time if you avoid writing code that has been already written, or that is not likely to be accepted.

There are basically two cases:

[edit] How to create a patch against the MySQL server source code

[edit] Submit

Now, in both cases, you have a bug report and a patch, thus, proceed to the following steps:

  1. Add the required documentation to the bug report. It does not have to be all in one go. You can add the various parts as comments or attach as (plain text) files.
  2. When all the required docs are added, create the patch in unified or context diff format (please don't submit whole files);
  3. attach the patch to the bug report;
  4. (Eventually) Go to the internals mailing list and advertise your patch.

[edit] A patch may not be accepted

Uh? What do you mean, a patch could not be accepted? After all the trouble I took to create it? Yes. It can happen. Not every feature you can think of will be accepted, even if it has all the formal requirements. A few examples of unlikely to be accepted patches:

Retrieved from "http://forge.mysql.com/wiki/Creating_a_Patch"

This page has been accessed 5,300 times. This page was last modified 11:48, 4 March 2009.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...