top-think / top-think/think-orm

v4.0.51 create 方法开启自动写入时间戳后生成的 SQL 错误

Open
#843 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
437
Forks
188
PR merge metrics
No merged PRs in 30d

Description

生成的 INSERT SQL 是无法执行的,SQL语句中来了个 create_time = 'now'

Image Image Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported create operation with automatic timestamp writing in v4.0.51 and inspect the generated INSERT SQL shown in the issue. Confirm the failure involving create_time = 'now', then verify that the generated INSERT is executable without that invalid SQL.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.