---
title: "Discussion on \"TIL: Debugging \"Column Cannot Be Null\" Error in MySQL despite nullable column definition\" | Hashnode"
description: "Discussion on \"TIL: Debugging \"Column Cannot Be Null\" Error in MySQL despite nullable column definition\". Problem Statement\nWhile working on a Nestjs project, I encountered a weird problem related to the database column. I was trying to insert a record into a MySQL table using TypeORM. The error I was experiencing stated that a specific column “cannot be..."
url: "https://hashnode.com/posts/til-debugging-column-cannot-be-null-error-in-mysql-despite-nullable-column-definition/6810d035ae0498491487851d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TIL: Debugging "Column Cannot Be Null" Error in MySQL despite nullable column definition](https://abulasar.com/til-debugging-column-cannot-be-null-error-in-mysql-despite-nullable-column-definition?utm_source=hashnode&utm_medium=feed)

Problem Statement While working on a Nestjs project, I encountered a weird problem related to the database column. I was trying to insert a record into a MySQL table using TypeORM. The error I was experiencing stated that a specific column “cannot be...

Apr 29, 2025 · 2 min read · abulasar.com  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#mysql](https://hashnode.com/tag/mysql)
-   [#null-safety](https://hashnode.com/tag/null-safety)
-   [#database-triggers](https://hashnode.com/tag/database-triggers)

## Written by

[AbulAsar S.](https://hashnode.com/@abulasar)

@abulasar · Mumbai, India

  
[View profile](https://hashnode.com/@abulasar)

Elixir |> JS/TS |> C++ |> AI enthusiast

I am a Software Engineer from Mumbai, India. In love with Functional programming ( precisely Elixir). Love to share the knowledge that I learn while developing things.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
