Skip to content

Shenli/fix beego - #181

Merged
ngaut merged 3 commits into
masterfrom
shenli/fix-beego
Sep 17, 2015
Merged

ngaut merged 3 commits into
masterfrom
shenli/fix-beego

Conversation

@shenli

@shenli shenli commented Sep 17, 2015

Copy link
Copy Markdown
Member
  1. Support alias table name in update multiple table
  2. Support LIKE BINARY

Comment thread expression/expressions/like.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use switch type
switch x := pattern.(type)
case string:
case []byte:
default:

@shenli

shenli commented Sep 17, 2015

Copy link
Copy Markdown
Member Author

PTAL

@siddontang

Copy link
Copy Markdown
Member

LGTM

1 similar comment
@ngaut

ngaut commented Sep 17, 2015

Copy link
Copy Markdown
Member

LGTM

ngaut added a commit that referenced this pull request Sep 17, 2015
@ngaut
ngaut merged commit 7b2f415 into master Sep 17, 2015
@ngaut
ngaut deleted the shenli/fix-beego branch September 17, 2015 07:28
YuJuncen pushed a commit to YuJuncen/tidb that referenced this pull request Apr 23, 2021
* README, docker: add quick start

Signed-off-by: Neil Shen <overvenus@gmail.com>

* cmd: disable some TiDB log

Signed-off-by: Neil Shen <overvenus@gmail.com>

* docker: build go-ycsb automatically

Signed-off-by: Neil Shen <overvenus@gmail.com>

* cmd: add TODO about TiDB logs

Signed-off-by: Neil Shen <overvenus@gmail.com>
nolouch pushed a commit to tidblabs/tidb that referenced this pull request Jan 6, 2023
* add placement in sem

Signed-off-by: ystaticy <y_static_y@sina.com>
ngaut added a commit to ngaut/tidb that referenced this pull request Aug 2, 2026
…ion point

Go's overflow message ends ` in '<expr>'`. It is built AT THE SIGNATURE
-- builtin_arithmetic.go writes fmt.Sprintf("(%s + %s)", args[0].String(),
args[1].String()) -- so the text is each RESOLVED argument's own String(),
not the statement's source.

Two pieces of plumbing are absent here, and either one alone makes a
hand-written approximation diverge, so this reports the seam rather than
half-building it:

  * a column renders fully qualified, test.t.a. The rewritten
    tidb_expr::Expr::Column holds the path AS WRITTEN; the resolved
    db.table.column lives in the executor's FromScope and the Columns
    trait the evaluator holds cannot be asked for it. The qualifier is
    not unformatted at the raising frame -- it is not there.
  * a literal renders as Go's formatting of the VALUE, not the source
    text: 1e308 comes back as 1e+308. So a restore diverges even for a
    constant-only expression, the case that looks trivially portable.

pingcap#74's generated-column expr_text is NOT reusable: restored with
WITHOUT_SCHEMA_NAME | WITHOUT_TABLE_NAME | NAME_BACK_QUOTES it produces
(`a` + 1), stripping exactly the qualifiers this message needs and
back-quoting the names it leaves bare.

Insertion point recorded in the test doc: tidb_expr::eval_in's
Expr::Binary(op, l, r) arm, which already holds Go's s.args.

The test pins today's class-and-code answer with the target text beside
it, so the divergence is measured rather than forgotten.
dbsid pushed a commit that referenced this pull request Aug 24, 2026
…#181 divergence

Captured live from Go nightly on this exact fixture:
  SELECT 9223372036854775807 + 1 ->
    BIGINT value is out of range in '(9223372036854775807 + 1)'
  SELECT a + b FROM t (runtime columns) ->
    BIGINT value is out of range in '(ovx.t.a + ovx.t.b)'

The folded-constant arm of this tier already matches the first form;
the test now pins it instead of expecting the bare class message. The
runtime-column arm still reports only the class - divergence #181
remains open there, and the test says so explicitly per case rather
than asserting one stale shape for all four statements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants