🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #310

default values problem with mysql version 5

#310
From: Anton Jungreuthmayer
Date: Fri, 17 Aug 2007 15:16
18 lines
1385 bytes
I have an application written in java with jBuilder.

This uses JDBC to access a mySQL database which I am converting from 
version 4.1 to version 5.0

When my application tries to INSERT a record but does not specify a 
value for a text field that is defined as NOT NULL with no default set 
the following error message is returned :

Field 'somedata' doesn't have a default value

this doesn't happen with JDBC on mysql 4.1
It also doesn't happen when I run the command in mysql, or when using 
mySql query browser but only when I connect using JDBC

Any clues ?

Anton
Technical Details
Message-ID: <46c5bbd4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,46beccc389838db9,start
X-Google-Attributes: gid1073da,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 17 Aug 2007 16:16:34 +0100
From: Anton Jungreuthmayer <anton@junglemajor.co.uk>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.database
Subject: default values problem with mysql version 5
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.43.51.59
Message-ID: <46c5bbd4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1187363796 84.43.51.59 (17 Aug 2007 08:16:36 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail