Skip to content

Commit

Permalink
[misc] version 1.3.0-beta-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Sep 29, 2015
1 parent 2619ff5 commit 38cb5c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions build_release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ call mvn exec:exec package -Dpackage-source
call %BINDIR%\mysqladmin -uroot shutdown

#deploy package
#generate javadoc : mvn javadoc:javadoc
#mvn clean deploy -Dmaven.test.skip=true -Dpackage-source

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>mariadb-java-client</artifactId>
<packaging>jar</packaging>
<name>mariadb-java-client</name>
<version>1.3.0-SNAPSHOT</version>
<version>1.3.0-beta-1</version>
<description>JDBC driver for MariaDB and MySQL</description>
<url>https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/</url>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public DateParameter(Date date, Calendar cal, Options options) {
}


/**
* write to server OutputStream in text protocol
* @param os output buffer
*/
public void writeTo(OutputStream os) throws IOException {
if (options.useLegacyDatetimeCode || options.maximizeMysqlCompatibility) {
calendar = Calendar.getInstance();
Expand All @@ -89,7 +93,8 @@ public void writeTo(OutputStream os) throws IOException {
}

/**
* @param writeBuffer
* write to server OutputStream in binary protocol
* @param writeBuffer output buffer
*/
public void writeBinary(PacketOutputStream writeBuffer) {
if (options.useLegacyDatetimeCode || options.maximizeMysqlCompatibility) {
Expand All @@ -100,10 +105,6 @@ public void writeBinary(PacketOutputStream writeBuffer) {
writeBuffer.writeDateLength(calendar);
}

public void writeToLittleEndian(final OutputStream os) throws IOException {

}

public MySQLType getMySQLType() {
return MySQLType.DATE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ private Timestamp binaryTimestamp(Calendar cal) throws ParseException {
c.set(Calendar.MINUTE, minutes);
c.set(Calendar.SECOND, seconds);
c.set(Calendar.MILLISECOND, microseconds / 1000);
System.out.println("TEST : c"+c.getTime().toString());
Timestamp tt = new Timestamp(c.getTimeInMillis());
tt.setNanos(microseconds * 1000);
return tt;
Expand Down

0 comments on commit 38cb5c1

Please sign in to comment.