~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-04 08:13:04 UTC
  • mfrom: (2384 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110804081304-rlejjpvoos17bjdf
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
627
627
     * @param[in] in_foreign_fields The foreign fields
628
628
     * @param[in] in_referenced_fields The referenced fields
629
629
     */
630
 
    ForeignKeyInfo(LEX_STRING *in_foreign_id,
631
 
                   LEX_STRING *in_referenced_db,
632
 
                   LEX_STRING *in_referenced_table,
633
 
                   LEX_STRING *in_update_method,
634
 
                   LEX_STRING *in_delete_method,
635
 
                   LEX_STRING *in_referenced_key_name,
636
 
                   List<LEX_STRING> in_foreign_fields,
637
 
                   List<LEX_STRING> in_referenced_fields)
 
630
    ForeignKeyInfo(lex_string_t *in_foreign_id,
 
631
                   lex_string_t *in_referenced_db,
 
632
                   lex_string_t *in_referenced_table,
 
633
                   lex_string_t *in_update_method,
 
634
                   lex_string_t *in_delete_method,
 
635
                   lex_string_t *in_referenced_key_name,
 
636
                   List<lex_string_t> in_foreign_fields,
 
637
                   List<lex_string_t> in_referenced_fields)
638
638
    :
639
639
      foreign_id(in_foreign_id),
640
640
      referenced_db(in_referenced_db),
661
661
     *
662
662
     * @ retval  the foreign id
663
663
     */
664
 
    const LEX_STRING *getForeignId() const
 
664
    const lex_string_t *getForeignId() const
665
665
    {
666
666
        return foreign_id;
667
667
    }
672
672
     *
673
673
     * @ retval  the name of the referenced database
674
674
     */
675
 
    const LEX_STRING *getReferencedDb() const
 
675
    const lex_string_t *getReferencedDb() const
676
676
    {
677
677
        return referenced_db;
678
678
    }
683
683
     *
684
684
     * @ retval  the name of the referenced table
685
685
     */
686
 
    const LEX_STRING *getReferencedTable() const
 
686
    const lex_string_t *getReferencedTable() const
687
687
    {
688
688
        return referenced_table;
689
689
    }
694
694
     *
695
695
     * @ retval  the update method
696
696
     */
697
 
    const LEX_STRING *getUpdateMethod() const
 
697
    const lex_string_t *getUpdateMethod() const
698
698
    {
699
699
        return update_method;
700
700
    }
705
705
     *
706
706
     * @ retval  the delete method
707
707
     */
708
 
    const LEX_STRING *getDeleteMethod() const
 
708
    const lex_string_t *getDeleteMethod() const
709
709
    {
710
710
        return delete_method;
711
711
    }
716
716
     *
717
717
     * @ retval  the name of the referenced key
718
718
     */
719
 
    const LEX_STRING *getReferencedKeyName() const
 
719
    const lex_string_t *getReferencedKeyName() const
720
720
    {
721
721
        return referenced_key_name;
722
722
    }
727
727
     *
728
728
     * @ retval  the foreign fields
729
729
     */
730
 
    const List<LEX_STRING> &getForeignFields() const
 
730
    const List<lex_string_t> &getForeignFields() const
731
731
    {
732
732
        return foreign_fields;
733
733
    }
738
738
     *
739
739
     * @ retval  the referenced fields
740
740
     */
741
 
    const List<LEX_STRING> &getReferencedFields() const
 
741
    const List<lex_string_t> &getReferencedFields() const
742
742
    {
743
743
        return referenced_fields;
744
744
    }
746
746
    /**
747
747
     * The foreign id.
748
748
     */
749
 
    LEX_STRING *foreign_id;
 
749
    lex_string_t *foreign_id;
750
750
    /**
751
751
     * The name of the reference database.
752
752
     */
753
 
    LEX_STRING *referenced_db;
 
753
    lex_string_t *referenced_db;
754
754
    /**
755
755
     * The name of the reference table.
756
756
     */
757
 
    LEX_STRING *referenced_table;
 
757
    lex_string_t *referenced_table;
758
758
    /**
759
759
     * The update method.
760
760
     */
761
 
    LEX_STRING *update_method;
 
761
    lex_string_t *update_method;
762
762
    /**
763
763
     * The delete method.
764
764
     */
765
 
    LEX_STRING *delete_method;
 
765
    lex_string_t *delete_method;
766
766
    /**
767
767
     * The name of the referenced key.
768
768
     */
769
 
    LEX_STRING *referenced_key_name;
 
769
    lex_string_t *referenced_key_name;
770
770
    /**
771
771
     * The foreign fields.
772
772
     */
773
 
    List<LEX_STRING> foreign_fields;
 
773
    List<lex_string_t> foreign_fields;
774
774
    /**
775
775
     * The referenced fields.
776
776
     */
777
 
    List<LEX_STRING> referenced_fields;
 
777
    List<lex_string_t> referenced_fields;
778
778
};
779
779
 
780
780
#define JOIN_TYPE_LEFT  1