We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题: mysql YEAR类型在canal1.0.3版本中使用了java.sql.Date对象来标示,无法准确的表示一个年份信息,原本一个年份2013,输出结果会是:2013-01-01
if (cal == null) cal = Calendar.getInstance(); cal.clear(); cal.set(Calendar.YEAR, i32 + 1900); value = new java.sql.Date(cal.getTimeInMillis());
解决:
The text was updated successfully, but these errors were encountered:
fixed issue 31 #31 处理YEAR字段类型的输出
75d8e7d
Merge pull request #31 from alibaba/master
171bedf
merge
agapple
No branches or pull requests
问题: mysql YEAR类型在canal1.0.3版本中使用了java.sql.Date对象来标示,无法准确的表示一个年份信息,原本一个年份2013,输出结果会是:2013-01-01
if (cal == null)
cal = Calendar.getInstance();
cal.clear();
cal.set(Calendar.YEAR, i32 + 1900);
value = new java.sql.Date(cal.getTimeInMillis());
解决:
The text was updated successfully, but these errors were encountered: