Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Mavarik 8/1/2006 3:26 AM
Hi!
I get this error while creating the admin account:

An error occured while creating the administrator:
NHibernate.ADOException: could not insert collection: [Cuyahoga.Core.Domain.User.Roles#1] ---> MySql.Data.MySqlClient.MySqlException: #HY000Field 'updatetimestamp' doesn't have a default value at MySql.Data.MySqlClient.PacketReader.CheckForError() at MySql.Data.MySqlClient.PacketReader.ReadHeader() at MySql.Data.MySqlClient.PacketReader.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.CommandResult.ReadNextResult(Boolean isFirst) at MySql.Data.MySqlClient.NativeDriver.SendQuery(Byte[] bytes, Int32 length, Boolean consume) at MySql.Data.MySqlClient.MySqlCommand.GetNextResultSet(MySqlDataReader reader) at MySql.Data.MySqlClient.MySqlCommand.Consume() at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() at NHibernate.Impl.NonBatchingBatcher.AddToBatch(Int32 expectedRowCount) at NHibernate.Collection.AbstractCollectionPersister.Recreate(PersistentCollection collection, Object id, ISessionImplementor session) --- End of inner exception stack trace --- at Cuyahoga.Core.Service.CoreRepository.SaveObject(Object obj) at Cuyahoga.Web.Install.Install.btnAdmin_Click(Object sender, EventArgs e)

Greetings Frank
# martijnb 8/1/2006 7:48 AM
Which MySQL version are you using? I think this issue has been reported earlier and it had something to do with MySQL not using default values anymore from a certain version.
To fix this problem, you can also remove the updatetimestamp column from the cuyahoga_userroles table. It's something left from the past and it has no function anymore.
# Mavarik 8/3/2006 7:27 AM
Hi!

Yes thanx... It works!

Frank