Welcome Guest, Not a member yet? Register   Sign In
MySQL insert ignore query
#5

[eluser]m.christie[/eluser]
[quote author="Devon Lambert" date="1267054414"][quote author="m.christie" date="1267052736"]Yip it's unfortunate that you can't extend the database class, but I've tried this and I've not found any problems with it so you should be fine Smile

Although, doing something that isn't recommended by the original developers... at your own risk etc. ;-)[/quote]

No Christie,

I was actually saying that you CAN extend the core rather than overwriting it.

Take a look at this CI wiki post:

Extending Database Drivers

There's also the way discussed in the following post which doesn't involve any hacking but it makes use of 2 queries instead of 1.

http://ellislab.com/forums/viewthread/144660/[/quote]

Ah sorry I misread your post.

I was just thinking of CI user guide where it says "Note: The Database classes can not be extended or replaced with your own classes".
But as always there are many ways of doing things, so everyone can use whichever ways suits their situation.


Messages In This Thread
MySQL insert ignore query - by El Forum - 02-24-2010, 03:51 AM
MySQL insert ignore query - by El Forum - 02-24-2010, 10:19 AM
MySQL insert ignore query - by El Forum - 02-24-2010, 11:05 AM
MySQL insert ignore query - by El Forum - 02-24-2010, 11:33 AM
MySQL insert ignore query - by El Forum - 02-25-2010, 04:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB