Navigation Menu

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ranguba/groonga-client
base: ab55abb6aae5
Choose a base ref
...
head repository: ranguba/groonga-client
compare: 8ff9649b1491
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Apr 27, 2017

  1. select: change Symbol handling in script syntax

    This is a backward incompatible change. But the use case affected by
    this change will make Ruby scripts difficult to maintain. I hope that
    existing users didn't match the use case. The use case is using Symbol
    as string value in script syntax like the following:
    
        filter("title", :value) # => --filter "title == \"value\""
    
    Before this change, all Symbol are treated as string value in script
    syntax. We can't specify column (object in general) in script syntax
    with the specification.
    
    With this change, Symbol is treated as identifier. It means that Symbol
    is treated as column (object in general) in script syntax like the
    following:
    
        filter("title", :normalized_title) # => --filter "title == normalized_title"
    
    For backward compatibility, invalid identifier in script syntax is
    fallbacked to string value in script syntax like the following:
    
        filter("title", :"Hello World") # => --filter "title == \"Hello World\""
    
    I think that an exception should be raised for the case but I choose the
    above specification...
    kou committed Apr 27, 2017
    Copy the full SHA
    8ff9649 View commit details
    Browse the repository at this point in the history