As per the Javadocs, the offical JDBCAppender is quite limited, and in particular has no good way of dealing with this issue.
One way around it is to use an alternative appender, such as this one which aims to be functionally compatible with the Log4J one except, you know, work.