List:MySQL++« Previous MessageNext Message »
From:Королев Илья Date:October 17 2006 10:26am
Subject:Re: Problems with timestamp
View as plain text  
В сообщении от 17 октября 2006 14:12 Warren Young написал(a):
> Королев Илья wrote:
> >> Search custom.pl for MYSQLPP_NO_STATIC, or see the way this feature is
> >> tested in examples/util.cpp.
> >
> > I guess, in such case I can't use field_list() function? Beside,
> > field_list() use names[], but in my patch there are no names[] at all.
>
> I think you misunderstand the feature.  You #include custom.h normally
> within one module, and #define MYSQLPP_NO_STATIC before including it
> again in other modules.  This ensures that the static members are
> defined only once, thus avoiding the problems of multiply defined static
> data members.

Thanks. I am really misunderstood. But it seems to me, that using *.h in such 
way isn't very comfortable. Why we can't just drop away static names[] ( and 
table)? The only advantage IMHO is that we can change names[](table) on the 
fly. Are there any other tricks?
Thread
Problems with timestampКоролев Илья16 Oct
  • Re: Problems with timestampWarren Young17 Oct
    • Re: Problems with timestampКоролев Илья17 Oct
      • Re: Problems with timestampWarren Young17 Oct
        • Re: Problems with timestampКоролев Илья17 Oct
          • Re: Problems with timestampWarren Young17 Oct
            • Re: Problems with timestampКоролев Илья17 Oct
              • Re: Problems with timestampWarren Young17 Oct
                • Re: Problems with timestampКоролев Илья17 Oct
                  • Re: Problems with timestampWarren Young18 Oct
                    • Re: Problems with timestampКоролев Илья18 Oct
                      • Re: Problems with timestampWarren Young18 Oct
                        • Re: Problems with timestampКоролев Илья24 Oct
                          • Re: Problems with timestampWarren Young24 Oct
                            • Re: Problems with timestampКоролев Илья25 Oct
                              • Re: Problems with timestampWarren Young25 Oct
                                • Re: Problems with timestampКоролев Илья20 Nov
                                  • Re: Problems with timestampWarren Young20 Nov