SShortSingh.
Back to feed

Oracle ORA-01400 on empty string insert: Oracle treats '' as NULL

0
·7 views

Developers moving from MySQL, PostgreSQL or SQL Server can hit an ORA-01400 error when inserting an empty string into a NOT NULL column in Oracle. The author reproduced the problem on Oracle AI Database 26ai Free (23.26.3) using a customers table where the phone column was NOT NULL. The query output showed that '' IS NULL evaluates to true and that the length of an empty string is NULL, so Oracle does not distinguish '' from NULL. The suggested fixes are to allow NULL in the column if the value is optional, or to have the application send a real value if it is required. After the column was changed to allow NULL, the insert succeeded but stored a NULL rather than an empty string.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Hands-on workshop shows how to build real-time card fraud detection on Cozystack

A workshop-style blog post walks readers through building a real-time card fraud detection system on Cozystack, an open-source cloud platform and CNCF Incubating project. The design wraps a legacy card-payment switch, which approves transactions under $5,000, with a scoring service that checks payments against recent history stored in Redis, using Kafka for messaging. If scoring does not respond within 400 milliseconds, the switch falls back to its built-in logic, a practice known as stand-in processing. Decisions are journaled and moved into PostgreSQL for the fraud team's dashboard, and a local language model explains declines to support staff without sending card data outside the cluster. The full guide and related labs are available in a public GitHub repository, and the fraud detection is presented as a teaching example rather than a product.

0
ProgrammingDEV Community ·

Kuberoot's Kubernetes-API router runs no containers and manages router state through the API server

The author's third post on kuberoot's distributions focuses on its router variant, which has no containers, scheduler, or kubelet yet still runs a full Kubernetes API server. The article argues that the API server already supplies the features network engineers have long assembled for fleet management, including typed schemas, validation, RBAC, audit logging, change watching, and conflict detection. A router node runs only five services: kine for SQLite-backed etcd API storage, the API server, a trimmed controller manager, a node API, and kuberoot-router, which programs the kernel's network stack. The author says the design was tested against outage post-mortems and compared with VyOS, OpenWrt, and plain Linux with FRR and nftables. The piece also discusses where this approach suits a router and where other tools are better.

0
ProgrammingDEV Community ·

Researchers Trace Vulnerable Nik Voice Ticketing Plugin via WordPress Path Markers

A security write-up explains how the Nik Voice Ticketing AI WordPress plugin can be located by searching for its plugin directory path in site HTML. The flaw, tracked as CVE-2026-143966, affects versions before 1.2.5 and an unauthenticated audio-upload REST route. A ZoomEye query on 4 December 2026 returned two path-level candidates, though the author stresses this does not measure the plugin's overall install base. The article notes such markers can be hidden or cached, so any candidate must be confirmed with the site owner and plugin version. It recommends testing only on owned WordPress installations, checking that patched versions reject malicious uploads, and reviewing server logs for follow-up requests.

0
ProgrammingDEV Community ·

A Kubernetes-style scheduler for future infrastructure that picks compute physics, from CPUs to quantum to neurons

The article argues that current infrastructure such as Unix, TCP/IP and Kubernetes was designed for earlier problems and is now being stretched to fit new ones. The author proposes starting from the expected future of computing, including energy limits, economics and trust requirements, and deriving the infrastructure from there. From these trends the author outlines a new layer without the concept of a node, where a scheduler selects the physics of computation for each task. The design also envisions participants identified by cryptographic identity rather than IP address, and a cloud framed as a market of any hardware substrate. A prototype called physis is described as running on eighteen computation physics, two of them on real hardware.