399 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

create table table_name of type_name 使用not null约束,建表失败

待办的
需求
创建于  
2022-04-29 14:44

【标题描述】: create table table_name of type_name 使用not null约束,建表失败
【测试类型:SQL功能】【测试版本:2.1.0】 问题描述

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
centos7.6
【测试环境】(单机/1主x备x级联备):
单机
【被测功能】:
create table
【测试类型】:
功能测试
【数据库版本】(查询命令: gaussdb –V):
2.1
【预置条件】:

  1. create type person_type as(id int, name text);
    【操作步骤】(请填写详细的操作步骤):
  2. create table person3 of person_type(primary key(id), name not null default '');

【预期输出】:
1.建表成功
Image description
【实际输出】:

  1. 建表失败
    Image description
    【原因分析】:
  2. 这个问题的根因
  3. 问题推断过程
  4. 还有哪些原因可能造成类似现象
  5. 该问题是否有临时规避措施
  6. 问题解决方案
  7. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (5)

roxanne315 创建了缺陷

Hey @roxanne315, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

roxanne315 修改了描述
roxanne315 优先级设置为主要
roxanne315 关联项目设置为示例项目
roxanne315 修改了描述
yansong_lee 任务类型缺陷 修改为需求

pg语法兼容,修改为需求类型

zhangxubo 添加了
 
sig/sqlengine
标签

This issue can not be assigned to junhangis. Please try to assign to the repository collaborators.

3.0版本上验证了一下,也有报错:
输入图片说明

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5622128 opengauss bot 1581905080
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server

搜索帮助