From 344fdb7c21d998f90da9dffeca8cec1a13944b89 Mon Sep 17 00:00:00 2001
From: Eli Collins <eli@cloudera.com>
Date: Sun, 29 Aug 2010 10:09:48 -0700
Subject: [PATCH] SQOOP-22. Sqoop date tests are too permissive.

Description: Ensure that tests involving dates/times use proper ANSI SQL
Date/Time escape formatting (yyyy-mm-dd or hh:mm:ss). After Java 1.6u17, dates
of the form yyyy-m-dd or hh:m:ss are not parsed by java.sql.Date/Time and
throw IllegalArgumentException.

Reason: Bug
Author: Aaron Kimball
Ref: CDH-2080
---
 .../org/apache/hadoop/sqoop/TestColumnTypes.java   |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/contrib/sqoop/src/test/org/apache/hadoop/sqoop/TestColumnTypes.java b/src/contrib/sqoop/src/test/org/apache/hadoop/sqoop/TestColumnTypes.java
index 3a5e1dd..c4e53f4 100644
--- a/src/contrib/sqoop/src/test/org/apache/hadoop/sqoop/TestColumnTypes.java
+++ b/src/contrib/sqoop/src/test/org/apache/hadoop/sqoop/TestColumnTypes.java
@@ -172,16 +172,11 @@ public class TestColumnTypes extends ImportJobTestCase {
 
   @Test
   public void testDate1() {
-    verifyType("DATE", "'2009-1-12'", "2009-01-12");
-  }
-
-  @Test
-  public void testDate2() {
     verifyType("DATE", "'2009-01-12'", "2009-01-12");
   }
 
   @Test
-  public void testDate3() {
+  public void testDate2() {
     verifyType("DATE", "'2009-04-24'", "2009-04-24");
   }
 
-- 
1.6.0.4

