Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Software error: DBD::mysql::st execute failed: Field 'name' doesn't have a default value

by hippo (Chancellor)
on Oct 28, 2020 at 16:17 UTC ( #11123268=note: print w/replies, xml ) Need Help??


in reply to Software error: DBD::mysql::st execute failed: Field 'name' doesn't have a default value

You are only specifying a value for field active not field name. The latter doesn't have a default value so the database rightly complains. Either specify a value for name in your SQL or alter the table definition in your DB to give name a default value.

Note that this isn't a Perl problem. You would get the same response whatever DB client you used with the same query.


🦛

  • Comment on Re: Software error: DBD::mysql::st execute failed: Field 'name' doesn't have a default value
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Software error: DBD::mysql::st execute failed: Field 'name' doesn't have a default value
by jonnyfolk (Vicar) on Oct 31, 2020 at 07:51 UTC

    Thanks for your advice - much appreciated

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123268]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2021-01-22 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?