Skip to content

Passing an out of range value to a unsigned integer throws a vague error #1823

@janpio

Description

@janpio

https://github.com/prisma/introspection-engine-output/blob/17c81171e67e1e45312668a9b38b977dc061996b/test-utils/results/mysql_public_test_utils_drupal_stderr.log

2020-03-11T13:55:21.617Z prisma-client prisma.lAfOL_block_content_field_data.create({
  data: {
    changed: -1512,
    default_langcode: 440,
    id: 4,
    info: 'bawha',
    langcode: '57e13d34-ca08-5720-b994-69fb4d3a0f81',
    reusable: 990,
    revision_id: -915,
    revision_translation_affected: 159,
    status: 1315,
    type: 'uhred'
  }
})
2020-03-11T13:55:21.617Z prisma-client Generated request:
2020-03-11T13:55:21.617Z prisma-client mutation {
  createOnelAfOL_block_content_field_data(data: {
    changed: -1512
    default_langcode: 440
    id: 4
    info: "bawha"
    langcode: "57e13d34-ca08-5720-b994-69fb4d3a0f81"
    reusable: 990
    revision_id: -915
    revision_translation_affected: 159
    status: 1315
    type: "uhred"
  }) {
    changed
    default_langcode
    id
    info
    langcode
    reusable
    revision_id
    revision_translation_affected
    status
    type
  }
}

...

Invalid response data: the query result was required, but an empty Object((Weak)) was returned instead.
    at PrismaClientFetcher.request (/home/runner/work/introspection-engine-output/introspection-engine-output/clients/mysql_public_test_utils/drupal/runtime/index.js:1:47203)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
model lAfOL_block_content_field_data {
  changed                       Int?
  default_langcode              Int
  id                            Int
  info                          String?
  langcode                      String
  reusable                      Int?
  revision_id                   Int
  revision_translation_affected Int?
  status                        Int
  type                          String

  @@id([id, langcode])
  @@index([id, default_langcode, langcode], name: "block_content__id__default_langcode__langcode")
  @@index([revision_id], name: "block_content__revision_id")
  @@index([status, type, id], name: "block_content__status_type")
  @@index([type], name: "block_content_field__type__target_id")
}
CREATE TABLE `lAfOL_block_content_field_data` (
  `id` int(10) unsigned NOT NULL,
  `revision_id` int(10) unsigned NOT NULL,
  `type` varchar(32) CHARACTER SET ascii NOT NULL COMMENT 'The ID of the target entity.',
  `langcode` varchar(12) CHARACTER SET ascii NOT NULL,
  `status` tinyint(4) NOT NULL,
  `info` varchar(255) DEFAULT NULL,
  `changed` int(11) DEFAULT NULL,
  `reusable` tinyint(4) DEFAULT NULL,
  `default_langcode` tinyint(4) NOT NULL,
  `revision_translation_affected` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`id`,`langcode`),
  KEY `block_content__id__default_langcode__langcode` (`id`,`default_langcode`,`langcode`),
  KEY `block_content__revision_id` (`revision_id`),
  KEY `block_content_field__type__target_id` (`type`),
  KEY `block_content__status_type` (`status`,`type`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='The data table for block_content entities.';

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions