datajoint / datajoint-matlab

Relational data pipelines for the science lab
MIT License
42 stars 37 forks source link

Documentation has syntax error for next auto_increment value #352

Closed guzman-raphael closed 3 years ago

guzman-raphael commented 3 years ago

Bug Report

Description

The documentation has a syntax mistake. In docs-parts/definition/07-Primary-Key_lang1.rst, it describe it as:

key.scah_idx = fetch1(Scan & key, 'next=max(scan_idx)+1')

Expected Behavior

It should be:

key.scan_idx = fetch1(Scan & key, 'max(scan_idx)+1 -> next')

Screenshots

image

Additional Research and Context

Raised in this DataJoint Slack thread.