1. references to non-existant functions in edbi_mysql.e?

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 )  

new topic     » topic index » view message » categorize

2. Re: references to non-existant functions in edbi_mysql.e?


I sent him a working copy. He's happy.
\ useless

new topic     » goto parent     » topic index » view message » categorize

3. Re: references to non-existant functions in edbi_mysql.e?

ryanj said...

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: references to non-existant functions in edbi_mysql.e?

ryanj said...

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 
jimcbrown said...

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...

new topic     » goto parent     » topic index » view message » categorize

5. Re: references to non-existant functions in edbi_mysql.e?

jimcbrown said...
jimcbrown said...

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: references to non-existant functions in edbi_mysql.e?

eukat said...
jimcbrown said...
jimcbrown said...

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.

eukat said...

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.

eukat said...

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.

NightHawk1 said...

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 

new topic     » goto parent     » topic index » view message » categorize

7. Re: references to non-existant functions in edbi_mysql.e?

eukat said...

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.

new topic     » goto parent     » topic index » view message » categorize

8. Re: references to non-existant functions in edbi_mysql.e?

jimcbrown said...
eukat said...

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> smile 
[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

new topic     » goto parent     » topic index » view message » categorize

9. Re: references to non-existant functions in edbi_mysql.e?

eukat said...
jimcbrown said...
eukat said...

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.

eukat said...

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> smile 
[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.

new topic     » goto parent     » topic index » view message » categorize

10. Re: references to non-existant functions in edbi_mysql.e?

jimcbrown said...

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.

new topic     » goto parent     » topic index » view message » categorize

11. Re: references to non-existant functions in edbi_mysql.e?

jimcbrown said...
jimcbrown said...

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

new topic     » goto parent     » topic index » view message » categorize

12. Re: references to non-existant functions in edbi_mysql.e?

eukat said...
jimcbrown said...
jimcbrown said...

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.

new topic     » goto parent     » topic index » view message » categorize

13. Re: references to non-existant functions in edbi_mysql.e?

Thanks everyone for helping me.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu