Fix order of arguments in ecpg generated typedef command.
authorMichael Meskes
Fri, 16 Oct 2015 15:29:05 +0000 (17:29 +0200)
committerMichael Meskes
Sun, 18 Oct 2015 08:16:49 +0000 (10:16 +0200)
src/interfaces/ecpg/preproc/ecpg.trailer

index 70dc690a5bc4f67cb27ab0ab5137f09b203c324f..422013c934d1cce428e86eec03d7263fdbf7ba98 100644 (file)
@@ -1311,7 +1311,7 @@ ECPGTypedef: TYPE_P
            if (auto_create_c == false)
                $$ = cat_str(7, mm_strdup("/* exec sql type"), mm_strdup($3), mm_strdup("is"), mm_strdup($5.type_str), mm_strdup($6.str), $7, mm_strdup("*/"));
            else
-               $$ = cat_str(6, mm_strdup("typedef "), mm_strdup($5.type_str), *$7?mm_strdup("*"):mm_strdup(""), mm_strdup($6.str), mm_strdup($3), mm_strdup(";"));
+               $$ = cat_str(6, mm_strdup("typedef "), mm_strdup($5.type_str), *$7?mm_strdup("*"):mm_strdup(""), mm_strdup($3), mm_strdup($6.str), mm_strdup(";"));
        }
        ;