1. references to non-existant functions in edbi_mysql.e?
- Posted by ryanj Dec 31, 2012
- 1276 views
I get the following error. What are these functions? Where do I get them? I searched the Manual for them, can't find them.
Euphoria Interpreter v4.0.5 Windows, Using Managed Memory Revision Date: 2012-10-11, Id: 362497032f33
...edbi_mysql.e:246 <0074>:: Errors resolving the following references: modules\db\edbi\edbi_mysql.e (200): peek_pointer modules\db\edbi\edbi_mysql.e (222): peek8u modules\db\edbi\edbi_mysql.e (243): sizeof modules\db\edbi\edbi_mysql.e (244): peek_pointer modules\db\edbi\edbi_mysql.e (245): sizeof modules\db\edbi\edbi_mysql.e (246): sizeof len_offset += sizeof( C_LONG )
2. Re: references to non-existant functions in edbi_mysql.e?
- Posted by useless_ Dec 31, 2012
- 1223 views
I sent him a working copy. He's happy.
\ useless
3. Re: references to non-existant functions in edbi_mysql.e?
- Posted by jimcbrown (admin) Jan 01, 2013
- 1224 views
I get the following error. What are these functions? Where do I get them? I searched the Manual for them, can't find them.
Euphoria Interpreter v4.0.5 Windows, Using Managed Memory Revision Date: 2012-10-11, Id: 362497032f33
...edbi_mysql.e:246 <0074>:: Errors resolving the following references: modules\db\edbi\edbi_mysql.e (200): peek_pointer modules\db\edbi\edbi_mysql.e (222): peek8u modules\db\edbi\edbi_mysql.e (243): sizeof modules\db\edbi\edbi_mysql.e (244): peek_pointer modules\db\edbi\edbi_mysql.e (245): sizeof modules\db\edbi\edbi_mysql.e (246): sizeof len_offset += sizeof( C_LONG )
These are builtin routines that are new to 4.1. You'll need to upgrade to a pre-alpha version of 4.1 to use this version of the driver.
4. Re: references to non-existant functions in edbi_mysql.e?
- Posted by jimcbrown (admin) Jan 01, 2013
- 1246 views
I get the following error. What are these functions? Where do I get them? I searched the Manual for them, can't find them.
Euphoria Interpreter v4.0.5 Windows, Using Managed Memory Revision Date: 2012-10-11, Id: 362497032f33
...edbi_mysql.e:246 <0074>:: Errors resolving the following references: modules\db\edbi\edbi_mysql.e (200): peek_pointer modules\db\edbi\edbi_mysql.e (222): peek8u modules\db\edbi\edbi_mysql.e (243): sizeof modules\db\edbi\edbi_mysql.e (244): peek_pointer modules\db\edbi\edbi_mysql.e (245): sizeof modules\db\edbi\edbi_mysql.e (246): sizeof len_offset += sizeof( C_LONG )
I can't find any documentation on them but you can find an implementation of peek_pointer and peek8u for 4.0 in the 4.1 includes: http://scm.openeuphoria.org/hg/euphoria/file/802b470ab5fa/include/std/machine.e
Here's an untested implementation of sizeof for 4.0:
public function sizeof(atom a) switch a do case C_DOUBLE, C_LONGLONG then -- TODO not sure if 4.0 has LONGLONG return 8 case C_CHAR, C_UCHAR then return 1 case C_SHORT, C_USHORT then return 2 case C_FLOAT, C_INT, C_UINT, C_LONG, C_ULONG, C_POINTER, E_INTEGER, E_ATOM, E_SEQUENCE, E_OBJECT then return 4 end switch end function
These are builtin routines that are new to 4.1. You'll need to upgrade to a pre-alpha version of 4.1 to use this version of the driver.
Here's the 4.0 version of the driver: https://bitbucket.org/jcowgar/edbi/src/4c9852ef7cfa/drivers/mysql/edbi_mysql.e
Here's the 4.1 version of the driver: https://bitbucket.org/jcowgar/edbi/src/258cfe734729/drivers/mysql/edbi_mysql.e
IMVHO, The driver needs to be fixed to support both 4.0 and 4.1 at the same time...
5. Re: references to non-existant functions in edbi_mysql.e?
- Posted by useless_ Jan 01, 2013
- 1194 views
These are builtin routines that are new to 4.1. You'll need to upgrade to a pre-alpha version of 4.1 to use this version of the driver.
Here's the 4.0 version of the driver: https://bitbucket.org/jcowgar/edbi/src/4c9852ef7cfa/drivers/mysql/edbi_mysql.e
Here's the 4.1 version of the driver: https://bitbucket.org/jcowgar/edbi/src/258cfe734729/drivers/mysql/edbi_mysql.e
IMVHO, The driver needs to be fixed to support both 4.0 and 4.1 at the same time...
Which is why i simply sent him the working copy i use. It works. He used it last night, about 15 minutes after he posted here, i had 7z'd my /bin/ and /include/ and uploaded for him, he had downloaded it, and used it successfully. IRC is real-time.
useless
6. Re: references to non-existant functions in edbi_mysql.e?
- Posted by jimcbrown (admin) Jan 01, 2013
- 1197 views
These are builtin routines that are new to 4.1. You'll need to upgrade to a pre-alpha version of 4.1 to use this version of the driver.
Here's the 4.0 version of the driver: https://bitbucket.org/jcowgar/edbi/src/4c9852ef7cfa/drivers/mysql/edbi_mysql.e
Here's the 4.1 version of the driver: https://bitbucket.org/jcowgar/edbi/src/258cfe734729/drivers/mysql/edbi_mysql.e
IMVHO, The driver needs to be fixed to support both 4.0 and 4.1 at the same time...
Which is why i simply sent him the working copy i use.
Yes, but I shared a working copy publicly for everyone to use.
It works.
I don't doubt it, but I took the extra effort to diagnose the issue and provide a fix, so in the future anyone else encoutering this issue would know what to do.
He used it last night, about 15 minutes after he posted here, i had 7z'd my /bin/ and /include/ and uploaded for him, he had downloaded it, and used it successfully. IRC is real-time.
My mistake. I had heard otherwise.
18:22 <NightHawk1> <rywilly> my "expert brain" is trying to build a mysql-based application in euphoria for the first time O.o 18:22 <NightHawk1> is there a document he can be pointed to? 18:46 <NightHawk1> I searched a bit, didnt spot anything off hand ... 00:19 <NightHawk1> never mind, he's going to try euphoria db
7. Re: references to non-existant functions in edbi_mysql.e?
- Posted by jimcbrown (admin) Jan 01, 2013
- 1141 views
He used it last night, about 15 minutes after he posted here... IRC is real-time.
I was asleep when he had first started asking about it, so you would have beaten me to the chase anyways.
8. Re: references to non-existant functions in edbi_mysql.e?
- Posted by useless_ Jan 01, 2013
- 1136 views
He used it last night, about 15 minutes after he posted here... IRC is real-time.
I was asleep when he had first started asking about it, so you would have beaten me to the chase anyways.
The irc channel is public, it's logged, the files i uploaded are still there.
You have a hell of a powerful compulsion to fight me, don't you?
He first asked specific questions, and tried downloading from the official Eu download location(s), and trying to use them. It became apparent to both of us there was a desync between EDBI and the official v4.0.5, and apparently the latest v4.1.0 on the official download site was also not working. So i 7z'd and uploaded what i use. And at 9:34pm ...
[21:34] <rywilly> SWEET! [21:34] <rywilly> it worked! [21:34] <any25596957>[21:35] <rywilly> i ran the example that created a table and data on the remote mysql server! [21:35] <rywilly> now i can quit for the day, knowing that it works, and i can start working on the actual application tomorrow
Now beat me to a pulp with that, jimcbrown.
useless
9. Re: references to non-existant functions in edbi_mysql.e?
- Posted by jimcbrown (admin) Jan 01, 2013
- 1138 views
He used it last night, about 15 minutes after he posted here... IRC is real-time.
I was asleep when he had first started asking about it, so you would have beaten me to the chase anyways.
The irc channel is public, it's logged, the files i uploaded are still there.
You have a hell of a powerful compulsion to fight me, don't you?
You get all that from my stating that I was asleep?
Sounds like the reverse is true.
He first asked specific questions, and tried downloading from the official Eu download location(s), and trying to use them. It became apparent to both of us there was a desync between EDBI and the official v4.0.5, and apparently the latest v4.1.0 on the official download site was also not working. So i 7z'd and uploaded what i use. And at 9:34pm ...
[21:34] <rywilly> SWEET! [21:34] <rywilly> it worked! [21:34] <any25596957>[21:35] <rywilly> i ran the example that created a table and data on the remote mysql server! [21:35] <rywilly> now i can quit for the day, knowing that it works, and i can start working on the actual application tomorrow
Now beat me to a pulp with that, jimcbrown.
Since you so kindly asked, I'll point out that:
The issue with edbi 4.0 should be fixed, or at least deserves a ticket on the bitbucket site.
Any issues with the 4.1.0 eubins should also be fixed, and deserves a ticket on the openeuphoria.org product.
The IRC logs aren't searchable by the website's search function. (Searching them isn't difficult, but the method to do so may not be obvious to a complete novice.) These problems probably need to be documented elsewhere to be of benefit to future novices. (Of course, the best place for this is not in a forum message, but in tickets.)
Solving the issue by having everyone use and maintain their own copy of the library leads to a kind of DLL Heck where different versions of what should be the same library are no longer interchangable and trying to reuse code from them (or combine projects together that use different versions of those libraries) can easily become a nightmare. (Though that doesn't seem to have been the case here.)
EDIT: fix typo
However, this is really the responsibility of the devs. Saving rywilly a day of effort is a positive, useful, and worthwhile contribution - but that doesn't mean that there aren't loose ends to be tied up.
10. Re: references to non-existant functions in edbi_mysql.e?
- Posted by jimcbrown (admin) Jan 01, 2013
- 1158 views
Saving rywilly a day of effort is a positive, useful, and worthwhile contribution - but that doesn't mean that there aren't loose ends to be tied up.
I'd guess that your immediate assistance was vastly more useful to rywilly than the cleaning up of loose ends much later on, naturally. That's how it's suppose to work.
11. Re: references to non-existant functions in edbi_mysql.e?
- Posted by useless_ Jan 01, 2013
- 1176 views
Saving rywilly a day of effort is a positive, useful, and worthwhile contribution - but that doesn't mean that there aren't loose ends to be tied up.
I'd guess that your immediate assistance was vastly more useful to rywilly than the cleaning up of loose ends much later on, naturally. That's how it's suppose to work.
Because i am not a dev, i got kicked out of that task. So YOU fix the loose ends.
useless
12. Re: references to non-existant functions in edbi_mysql.e?
- Posted by jimcbrown (admin) Jan 01, 2013
- 1159 views
Saving rywilly a day of effort is a positive, useful, and worthwhile contribution - but that doesn't mean that there aren't loose ends to be tied up.
I'd guess that your immediate assistance was vastly more useful to rywilly than the cleaning up of loose ends much later on, naturally. That's how it's suppose to work.
Because i am not a dev, i got kicked out of that task. So YOU fix the loose ends.
Actually, I don't believe that I have dev access to the edbi bitbucket repo either.
13. Re: references to non-existant functions in edbi_mysql.e?
- Posted by ryanj Jan 01, 2013
- 1157 views
Thanks everyone for helping me.