phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamestay...@apache.org
Subject git commit: PHOENIX-1028 Prevent declaration of non PK columns as NOT NULL
Date Mon, 09 Jun 2014 05:11:53 GMT
Repository: phoenix
Updated Branches:
  refs/heads/3.0 4281e7cea -> 05f8bf056


PHOENIX-1028 Prevent declaration of non PK columns as NOT NULL


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/05f8bf05
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/05f8bf05
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/05f8bf05

Branch: refs/heads/3.0
Commit: 05f8bf056a8295d3634c5f8329208a7ee35e1a22
Parents: 4281e7c
Author: James Taylor <jtaylor@salesforce.com>
Authored: Sun Jun 8 22:13:31 2014 -0700
Committer: James Taylor <jtaylor@salesforce.com>
Committed: Sun Jun 8 22:13:31 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/phoenix/end2end/ToCharFunctionIT.java | 10 +++++-----
 .../org/apache/phoenix/end2end/ToNumberFunctionIT.java    |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/05f8bf05/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
index 641ddc4..13d6bb7 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToCharFunctionIT.java
@@ -67,11 +67,11 @@ public class ToCharFunctionIT extends BaseClientManagedTimeIT {
     
     public static final String TO_CHAR_TABLE_DDL = "create table " + TO_CHAR_TABLE_NAME +
         "(pk integer not null, \n" + 
-        "col_date date not null, \n" +
-        "col_time date not null, \n" +
-        "col_timestamp timestamp not null, \n" +
-        "col_integer integer not null, \n" + 
-        "col_decimal decimal not null \n" + 
+        "col_date date, \n" +
+        "col_time date, \n" +
+        "col_timestamp timestamp, \n" +
+        "col_integer integer, \n" + 
+        "col_decimal decimal\n" + 
         "CONSTRAINT my_pk PRIMARY KEY (pk))";
 
     @Before

http://git-wip-us.apache.org/repos/asf/phoenix/blob/05f8bf05/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
index 0fbb23d..b087985 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ToNumberFunctionIT.java
@@ -60,10 +60,10 @@ public class ToNumberFunctionIT extends BaseClientManagedTimeIT {
     public static final String TO_NUMBER_TABLE_DDL = "create table " + TO_NUMBER_TABLE_NAME
+
         "(a_id integer not null, \n" + 
         "a_string char(4) not null, \n" +
-        "b_string char(4) not null, \n" + 
-        "a_date date not null, \n" + 
-        "a_time date not null, \n" + 
-        "a_timestamp timestamp not null \n" + 
+        "b_string char(4), \n" + 
+        "a_date date, \n" + 
+        "a_time date, \n" + 
+        "a_timestamp timestamp \n" + 
         "CONSTRAINT my_pk PRIMARY KEY (a_id, a_string))";
     
     private Date row1Date;


Mime
View raw message