package com.akiba.cserver;

public interface CServerConstants {

	public final static short OK = 1;
	public final static short END = 2;
	public final static short ERR = 100;
	public final static short MISSING_OR_CORRUPT_ROW_DEF = 99;
	public final static short NON_UNIQUE = 101;
	public final static short FOREIGN_KEY_MISSING= 102;

	public final static int MAX_VERSIONS_PER_TABLE = 65536;
	public final static int MAX_GROUP_DEPTH = 256;
}

@@ -272,64 +272,164 @@
  = 1
-01;%0A%09public final static short FOREIGN_KEY_MISSING= 102;
+21;%09// copied from mysql include/my_base.h (line 377)%0A%09public final static short FOREIGN_KEY_MISSING= 151; // copied from mysql include/my_base.h (line 405)
 %0A%0A%09p

Update the error values generated (and returned over the wire) to match those expected by MySQL.