Skip to content

Bug: Model save method not working if PRIMARY KEY is VARCHAR #2835

Description

@crustamet

Hello again codeigniter TEAM

i am trying to save some data into mysql database table

i have array

[0] => Array
(
    [id] => 51610677-FD05-49FC-B6B8-EC6A2B932968
    [date] => 1586855452
)

Here is my code

$Model->save([
	'id' => '51610677-FD05-49FC-B6B8-EC6A2B932968',
	'date'  => date("Y-m-d H:i:s", 1586855452)
]);

The result telling me it was a success but when im going to table i see empty table.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions